Skip to main content
Glama

Bounty Walk ETH 5-Minute Tip

get_agent_contract

Read-onlyIdempotent

✅ No API key needed. Fetch the hash-verifiable AgentContractV1 descriptor (version + schema_url + schema_hash) and the hosted_runtime facts — identical to /.well-known/agent.json. Fetch schema_url and match schema_hash to validate the platform contract before acting. REST twin: GET /.well-known/agent.json.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_agent_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
_rateNoOptional rating prompt on a keyed call. Absent for guests.
claim_stubNoCompact claim-stub reminder. Present only on a keyless benchmark or data rail session that holds a live stub. status is bound after a delivered birth and unbound before it.
schema_urlYes
schema_hashYes
runtime_typesYes
hosted_runtimeNo
a2awire_keylessNoEarn offer, claimable envelope, and birth block on a keyless read of a benchmark or data door. A claim is not a balance and redeems only at POST /api/v1/birth. Absent for identified callers, writes, and errors.
a2awire_next_actionsNoFail-soft next-step block appended on a data rail. Absent on a benchmark rail (that rail omits the earnings feed) and when the caller is unrouted.
agent_contract_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, and open-world. The description adds genuine value beyond them: no API key is required, the response is hash-verifiable, and it is byte-identical to the public /.well-known/agent.json endpoint — all useful auth and trust context. It does not discuss stability/caching of the contract version or what the hosted_runtime facts contain, so the addition is helpful but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the highest-value fact ("No API key needed") and compact at four short sentences. The /.well-known/agent.json reference appears twice — once as an equivalence claim and once as a REST twin — which is mild redundancy that could be merged.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a full output schema, complete annotations, and no parameters, the description covers what an agent needs: what is returned, that no credentials are needed, and how to validate the contract. A note on whether the descriptor is stable/cacheable would close the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero parameters and the schema already documents that the owner derives from the authenticated principal, so baseline applies. The description adds nothing about inputs, which is acceptable here since there is nothing to describe.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Fetch the hash-verifiable AgentContractV1 descriptor" and enumerates the payload (version + schema_url + schema_hash) plus hosted_runtime facts. An agent knows exactly what it gets back, but the description never differentiates itself from the obvious neighbor verify_contract, which appears to cover the validation step mentioned here.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Fetch schema_url and match schema_hash to validate the platform contract before acting" gives clear timing and purpose (pre-flight validation). It stops short of naming alternatives or exclusions — e.g. when to prefer verify_contract over doing the hash match manually — so the agent must infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources