Skip to main content
Glama
x402 Micropayments & US City Compliance MCP

x402 Micropayments & US City Compliance MCP

US city property sample

city.sample
Read-onlyIdempotent

Get a free fixed-address property compliance sample for one US city code to validate city_code and response shape before running a paid city.check.

Instructions

Get a free fixed-address property compliance sample for one US city code. Use before city.check to validate city_code and response shape without paying.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "city_code": "<city_code>"
    },
    "name": "city.sample"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoOptional agent identity for quota accounting.
city_codeYesCity code from city.list. Examples: 'mn', 'sea', 'nyc', 'chi'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already communicate read-only, idempotent, and non-destructive behavior. The description adds useful context beyond these flags: the sample is free, tied to a fixed address, and is intended for pre-validation before a paid check. This is meaningful additional behavioral guidance.

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

Conciseness5/5

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

The description is exactly two sentences: one states the core action and the other states its intended use. It is front-loaded, focused, and every phrase earns its place.

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

Completeness5/5

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

The tool is simple, has one required parameter, an output schema, and annotations that declare safety. The description provides the critical free/paid distinction and explicit 'use before' guidance. Nothing necessary for calling it correctly is missing.

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?

Schema description coverage is 100%, so the input schema fully documents city_code and agent_id. The description confirms that city_code is a single US city code, matching the schema's examples but adding minimal new semantic information beyond the structured fields.

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 description clearly names the action, the resource type, and the scope: 'Get a free fixed-address property compliance sample for one US city code.' It also identifies the related tool city.check, making the purpose distinct and understandable immediately.

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 explicitly states when to use this tool: 'Use before city.check to validate city_code and response shape without paying.' This gives an agent a precise use case and effectively routes to or away from city.check.

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