Skip to main content
Glama

See where a check stands

check_status
Read-only

Where one of your checks stands now, by its preauth_id. Read-only.

Use it after a needs_human_approval answer, once the owner says they decided. status is one of:

  • waiting_for_owner: not decided yet — do not buy.

  • approved: the owner approved — buy now, before deadline, then call report_purchase with the preauth_id.

  • allowed: allowed at check time — buy, then report_purchase with the decision_token the check returned.

  • declined / denied / expired: do not buy. If the purchase is still needed after expiry, run a fresh check.

  • completed: already reported — never buy twice. Only the connection or key that ran the check can read it. The account comes from your connection, never from call arguments: passing tenant_id, tenant, or tenantId refuses the call.

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": {
      "preauth_id": "<preauth_id>"
    },
    "name": "check_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
tenantNo
tenantIdNo
tenant_idNo
preauth_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/destructiveHint, but the description adds substantial context they cannot carry: per-status decision semantics, the authorization scope ('only the connection or key that ran the check can read it'), and a surprising refusal behavior when tenant arguments are passed. These are exactly the behavioral traits an agent needs and cannot infer from structured fields.

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 one-line purpose and read-only marker, then a scannable status list. The tenant-argument warning is worth including but the enumeration of three spellings (tenant_id, tenant, tenantId) plus the restated account-source sentence is slightly verbose.

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 no output schema, the description must convey the return values, and the status enumeration covers the decision-critical part, including a reference to a decision_token it returns. It does not state the full response shape (deadlines, timestamps, or other fields the caller might receive), so it is strong but not exhaustive.

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?

Schema coverage is 0%, so the description must compensate, and it does: it explains that preauth_id identifies the check and that the three tenant* parameters are account-injection traps that cause the call to be refused. It stops short of saying where preauth_id comes from (presumably the original check response) or its format, which leaves a small gap.

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?

States a specific verb and resource — read the current status of one check keyed by preauth_id — and the first line already rules out it being a mutation by saying 'Read-only'. An agent can distinguish it from report_purchase (a write) 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 Guidelines5/5

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

Gives an explicit trigger ('after a needs_human_approval answer, once the owner says they decided') and then routes per branch, naming the sibling tool to call next (report_purchase) for the approved/allowed cases. It also states the fallback for expired checks ('run a fresh check') and the prohibition for completed ones.

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