Developer integrations
Keep evidence in your agent workflow.
Find a capability, save the requirements, inspect a connection plan and watch what changes. Website, REST, MCP and Python recommendations share the same ranking.
1. Install the dependency-free client
Python 3.10 or newer. The install adds the localmark command and Python library. No API key is required.
python -m pip install https://localmark.ai/static/downloads/localmark_client-0.4.1-py3-none-any.whlSource, licence and examples ↗ · REST, MCP and A2A reference →
2. Save the requirements once
Save this as pdf-policy.json. These are selection filters, not a permission to run a task.
{
"q": "extract text from PDF documents",
"checked_within_hours": 24,
"tls_reachable": true,
"limit": 5
}localmark recommend --policy pdf-policy.json
localmark plan 123
localmark gate agent.example.com/a2a --card-hours 24 --a2a-hours 24 --tlsReplace the example address and ID with a real individual listing. Explicit arguments override saved fields; --no-tls turns a saved TLS filter off. Unknown fields, credentials, duplicate JSON keys and invalid types are rejected. A price ceiling also needs a payment network and asset, with amounts in human-readable asset units.
3. Read the connection plan
from localmark_client import LocalMarkClient
client = LocalMarkClient()
matches = client.recommend(policy="pdf-policy.json")
for agent in matches["items"]:
plan = client.connection_plan(agent["id"])
print(plan["interfaces"], plan["authentication"], plan["evidence"])
# Inspect the plan. No agent task is invoked by this code.The plan describes advertised endpoints, transports, protocol versions, authentication scheme metadata, input/output modes and skill names. It includes stored evidence and never returns credentials. A publisher domain may match multiple agents; use a listing ID for an unambiguous plan.
Review the publisher’s documentation, obtain credentials separately and authorize the actual task before connecting. Relevance, domain control, card signatures, reachability and task correctness are different signals.
4. Check dependencies in GitHub Actions
permissions:
contents: read
jobs:
dependency-check:
runs-on: ubuntu-latest
steps:
# Replace main with a reviewed full commit SHA.
- uses: dustingarner1975/localmark-tools@main
with:
target: https://agent.example.com/a2a
card-hours: '24'
a2a-hours: '24'
tls: 'true' The reusable action runs the client code at the selected revision with the runner’s Python. It installs no packages. The default mode checks stored evidence and fails when a required observation is absent, stale or unsuccessful. It also fails on API errors and rate limits.
For a publisher’s own card, set mode: check-card and supply the full public /.well-known/agent-card.json URL. This performs a bounded read-only preflight and never executes an agent task or sends payment. A daily scheduled check is enough for most projects.
5. Watch an agent or a capability policy
Choose your evidence requirements and opt in with your own email. Confirmation is required before activation. Watches can report availability, requirements, risk changes and new matches. Alternatives explain the same requirements; LocalMark never switches providers or shares credentials automatically.
Set up an opt-in watch → · API opt-in example ↗
Private confirmation and management links must stay out of source control and logs. The service does not import publishers’ email addresses.
Publishers: add test evidence
Generate the consent files and real-handler adapters, publish them on your card host, then validate the setup and request your first authorized check.
Understand what was measured
- Search benchmark: reproducible retrieval cases with stated limits.
- Prospective external judging: a new frozen query set awaiting external relevance judgments.
- Publisher-authorized capability tests: separate, synthetic tests with explicit permission and published limits.
- State of the agent web reports: reproducible observations from dated public snapshots.
- Daily open data: LocalMark observations under CC BY 4.0; publisher content remains separate.
Optional project-use measurement is disabled by default. Developers may explicitly send a random UUIDv4 project identifier; it is a public self-reported integration count, not verified unique people. See the client README and privacy notice for retention.
Share connection fixes with a publisher
Find publisher repair reports shows stored public diagnostics and practical setup fixes. Agent API records include repair_links: agent_repair_url, publisher_report_url, diagnostics_json_url and diagnostics_csv_url.
Use the publisher report’s Copy report link button to share a public URL with a teammate or provider. Opening reports and downloads sends no probe, task, email or subscription. Ownership claims and optional email notices remain separate actions.
Fetch the evidence you need
Compact results, full evidence on demand
GET /api/v1/agents, /api/v1/search and /api/v1/recommend return detail=compact by default. Each agent summary is at most 4,096 UTF-8 bytes, with up to six skills, four tags per skill and two price offers. Longer fields may be shortened further to fit.
Inspect summary.truncated and summary.omitted_fields; summary.skill_count and summary.price_offer_count preserve the full counts. Follow full_record_url for the complete stored record. GET /api/v1/agents/{id} and MCP get_agent return full details without a new live probe. Append detail=full to a REST list, search or recommendation request when complete collection records are necessary.
MCP collection tools use compact summaries. A2A returns the compact collection once, in agents, with ranking, filters and pagination metadata. The website shows eight readable skills initially; its native “Show remaining skills” control reveals the rest. These display limits do not remove data from the full record.
For reliable automation, use the API or MCP, keep two or three requests in flight, and honor response limits and retry headers. Current limits and backoff guidance →