Skip to main content
Glama
Agent Tools (x402 + MCP + A2A directory)

Agent Tools (x402 + MCP + A2A directory)

Official

Current directory counts

stats
Read-onlyIdempotent

Check live counts of indexed and healthy x402 services, MCP servers, and A2A agents; returns current totals and health by protocol, read-only.

Instructions

Current size of the directory: live counts per protocol, no history or rankings.

A quick check of how many x402 services, MCP servers and A2A agents are indexed and how many are healthy right now. For daily ecosystem statistics, findings, top searches, topic or monthly reports use directory_stats instead. Takes no arguments. Read-only.

Returns: {x402, mcp, a2a}. x402 has total, healthy, by_chain; mcp and a2a have total, healthy, conformant, x402_capable, new_7d and access counts. A part that fails to load is returned as {"error": ...} instead of failing the call.

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": "stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuinely non-obvious behavior: a failed part is returned as an `{"error": ...}` object rather than failing the whole call, which an agent needs to know to interpret partial results. The Returns block largely restates the output schema, so it earns less credit than the failure-mode disclosure.

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?

The description is front-loaded: purpose, then sibling differentiation, then argument behavior, then return shape. The Returns section is partly redundant with the declared output schema and could be trimmed, but it is clearly segmented and not padded.

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?

For a no-argument read tool with a declared output schema, the description covers purpose, exclusion scope, alternatives, and the partial-failure contract. The only surplus is the return-field enumeration, which duplicates the schema rather than adding new information.

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

Parameters4/5

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

With zero parameters, the baseline is 4, and the description correctly confirms 'Takes no arguments,' removing any ambiguity about required input. There is no further parameter meaning to add.

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

Purpose5/5

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

The opening line names a specific resource and scope: live per-protocol counts of the directory, explicitly excluding history and rankings. It is clearly distinguishable from `directory_stats`, which is named as the historical/reporting counterpart.

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

Usage Guidelines5/5

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

The description states when to use this tool (a quick check of how many services/servers/agents are indexed and healthy right now) and names the concrete alternative `directory_stats` with the conditions that select it: daily statistics, findings, top searches, topic or monthly reports. It also notes the tool takes no arguments.

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