Skip to main content
Glama

Check act

check_act

Check (and if allowed, record) a proposed act against a covenant. Deny-by-default. Idempotent on act_id — retries never double-consume budget. Every check lands on the audit chain.

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": {
      "covenant_id": "<covenant_id>",
      "act_id": "<act_id>",
      "scope": "<scope>"
    },
    "name": "check_act"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesThe action being attempted, for example payments.send.
act_idYesYour id for this act; a retry with the same act_id never double-spends.
covenant_idYesThe covenant id returned by grant_covenant.
amount_minorNoSpend for this act in minor units. Default 0.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed4 schema fields changed
    • addedInput schema / properties / act_id / description
      Added value: +"Your id for this act; a retry with the same act_id never double-spends."
    • addedInput schema / properties / amount_minor / description
      Added value: +"Spend for this act in minor units. Default 0."
    • addedInput schema / properties / covenant_id / description
      Added value: +"The covenant id returned by grant_covenant."
    • addedInput schema / properties / scope / description
      Added value: +"The action being attempted, for example payments.send."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds substantial behavior beyond annotations: deny-by-default policy, that every check is written to the audit chain, and that budget consumption is keyed on act_id. Note the tension with idempotentHint=false — the description scopes idempotency to budget, while each call still appends an audit record, so full-call idempotency is not claimed. It does not say how a denial surfaces (error vs. response field), but the output schema covers that.

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?

Three short sentences, front-loaded with the core action, then the policy default, the retry contract, and the audit property. Nothing is redundant or 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 four-parameter authorization tool with annotations and an output schema, the description covers the essential contract: it is a gate, it defaults to deny, retries are safe, and results are audited. Missing only the conditions under which a caller should prefer covenant_status or verify_audit, and how a denial is surfaced.

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 all four parameters are already documented. The description only reinforces act_id semantics (retry safety) and implies amount_minor drives budget consumption; it adds nothing about scope string format or covenant_id provenance beyond the schema.

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?

States a concrete verb and resource: check a proposed act against a covenant, with the side effect of recording it when allowed. An agent can tell this is a pre-action authorization check, distinct from siblings like covenant_status or verify_audit, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'proposed act' and 'deny-by-default' signal this is the gate to call before performing an action. There is no explicit when-to-use/when-not guidance and no pointer to covenant_status or verify_audit for the follow-up questions an agent will have.

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.