Skip to main content
Glama

Check what an agent is allowed to do

check_authority
Read-onlyIdempotent

Resolve the human mandate behind an AI agent: which actions a named person actually permitted, any value cap, the expiry, and whether the grant itself is signed. Where authority was delegated agent to agent, the full chain is walked back to the human at the root, and one law is enforced at every hop: authority may only ever narrow. No hop can hold an action, a target or a spending cap wider than the hop above it, and the root must be a human. Use this before letting an agent transact, sign, spend or commit on someone else's behalf. An agent holding a valid credential may still be acting outside its mandate, and those are different questions. The answer is the mandate on file as of checked_at. It is not proof the permission still holds at the moment the action runs: check again at the point of action, and treat a record as proof of what was recorded and when.

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": {
      "query": "<query>"
    },
    "name": "check_authority"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesAgent name, credential id, or agent UUID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish this is a safe, idempotent read, and the description adds substantial behavior beyond them: the chain is walked back to a human root, the narrowing invariant is enforced at every hop, and the result is explicitly scoped as "the mandate on file as of checked_at" rather than live proof of permission. The closing caveat ("treat a record as proof of what was recorded and when") pre-empts the most likely misreading, which is exactly what behavioral disclosure should do.

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 purpose and the returned facts are front-loaded in the first sentence, and every subsequent sentence contributes either the narrowing invariant, the usage trigger, or the staleness caveat. Slight cost in rhetorical framing ("one law is enforced at every hop", "may only ever narrow") which restates the same invariant in two registers.

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?

For a one-parameter read with no output schema, the description does the work the missing schema would otherwise have to: it lists the resolved facts, explains the delegation-chain semantics, and pins down what the answer does and does not prove. An agent knows what it will get back, when it is valid, and when to call again.

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?

With one parameter at 100% schema coverage, the schema already defines query as agent name, credential id, or agent UUID, and the description adds nothing to that. Minor friction: it references a "checked_at" that is not in the input schema, which could momentarily send an agent looking for a parameter that does not exist. Baseline 3 applies when the schema carries the parameter burden.

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?

"Resolve the human mandate behind an AI agent" names a specific verb and resource, then enumerates the exact facts returned: permitted actions, value cap, expiry, signature status, and the delegation chain. It also draws a sharp line against the adjacent credential question ("An agent holding a valid credential may still be acting outside its mandate, and those are different questions"), so an agent can tell it apart from verify_agent without opening either schema.

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?

"Use this before letting an agent transact, sign, spend or commit on someone else's behalf" gives a crisp triggering condition, and "check again at the point of action" states the re-check policy. What is missing is explicit sibling routing by name: it distinguishes the mandate question from the credential question conceptually but never says which tool answers the other one.

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