Skip to main content
Glama

Leash

Policy usage

leash_policy_usage
Read-onlyIdempotent

Same JSON as GET /api/policy/usage: rolling-24h spent, reserved and remaining for native HYPE and each capped token. Chain is taken from the verified policy; optional chain is a cross-check.

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": {
      "policy": "<policy>"
    },
    "name": "leash_policy_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoOptional cross-check against the signed policy's chain
policyYesLeash policy token (lp1.…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered; the description still adds real behavior beyond that by specifying the 24-hour rolling window and the three quota buckets (spent, reserved, remaining) that come back. It also discloses that the authoritative chain is read from the verified policy and the chain argument is only a cross-check, though it never says what happens when the cross-check fails.

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?

Two dense sentences with the returned data shape front-loaded and the chain caveat second; nothing is padded. The "Same JSON as GET /api/policy/usage" framing assumes familiarity with an external API contract, which costs a little clarity for the space it saves.

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 two-parameter read-only tool with no output schema, the description covers the returned fields and the chain-resolution rule, which is most of what an agent needs. Remaining gaps — mismatch/error behavior and whether the policy token can expire or be invalid — are minor but real for a tool that depends on a signed token.

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 coverage is 100%, so both parameters are already documented in the schema, including the enum and the "Optional cross-check against the signed policy's chain" wording. The description reinforces that the chain is derived from the policy (so the parameter is optional/verification-only), but that largely repeats the schema rather than adding new meaning.

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?

"Same JSON as GET /api/policy/usage: rolling-24h spent, reserved and remaining for native HYPE and each capped token" names a specific resource and the exact payload an agent will get back, which makes the read intent unambiguous. It is clear but leans on an external endpoint reference rather than a direct verb+resource statement, and it never contrasts itself with the sibling policy tools.

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

Usage Guidelines2/5

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

The description says nothing about when to call this versus leash_policy_read, leash_risk_check, or the other policy siblings, and gives no preconditions or exclusions. The only contextual note (chain is a cross-check) is parameter behavior, not usage routing, so the agent must infer the use case entirely from the payload description.

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