Skip to main content
Glama

Grant covenant

grant_covenant

Grant an agent a covenant: an explicit lease of authority. scopes support wildcards ('payments.', ''); budget_minor is the total spend ceiling in minor units; expires_at is ISO-8601. Returns the covenant_id.

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": {
      "principal": "<principal>",
      "agent_id": "<agent_id>",
      "scopes": "<scopes>",
      "budget_minor": "<budget_minor>",
      "expires_at": "<expires_at>"
    },
    "name": "grant_covenant"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopesYesAllowed actions, wildcards supported, for example ["payments.*"].
agent_idYesId of the agent receiving (or, when listing, bound by) the covenant.
principalYesId of the party granting authority.
expires_atYesWhen the covenant ends, ISO-8601.
budget_minorYesTotal spend ceiling in minor units (cents).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed5 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"Id of the agent receiving (or, when listing, bound by) the covenant."
    • addedInput schema / properties / budget_minor / description
      Added value: +"Total spend ceiling in minor units (cents)."
    • addedInput schema / properties / expires_at / description
      Added value: +"When the covenant ends, ISO-8601."
    • addedInput schema / properties / principal / description
      Added value: +"Id of the party granting authority."
    • addedInput schema / properties / scopes / description
      Added value: +"Allowed actions, wildcards supported, for example [\"payments.*\"]."
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the covenant_id return and clarifies wildcard scope grammar, but never explains the consequence of non-idempotency (re-granting creates a new lease rather than updating one) or any authorization requirement on the grantor. That is the most operationally important gap left.

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 core action and its semantic gloss, then three compact clauses. Every sentence is readable and none is wasted on preamble, though the parameter clauses duplicate schema text rather than conveying new information.

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

Completeness3/5

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

An output schema exists, so the return-value sentence is redundant but harmless. For a mutation that creates authority with a spend ceiling, the definition omits what happens on repeat grants, whether existing covenants conflict, and what authority the principal must hold – gaps that matter for correct invocation.

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 baseline is 3. The description restates the wildcard example, the minor-units meaning of budget_minor, and the ISO-8601 format of expires_at – all of which the schema already documents verbatim, so it adds no meaning beyond the structured fields.

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 specific verb and resource ('Grant an agent a covenant') and even defines the domain concept as 'an explicit lease of authority', which tells an agent what the object is. It does not explicitly contrast with revoke_covenant or covenant_status, but the verb makes the distinction largely self-evident, so this falls just short of a 5.

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 by the verb and the 'lease of authority' framing, but there is no explicit when-to-use, no precondition (e.g. that the principal must itself hold the scopes), and no when-not or alternative named. An agent can infer the moment to call it but gets no routing guidance.

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.