Skip to main content
Glama

Vigil — an outside witness for AI agents

vigil_grant_lease

Grant a short-lived, Ed25519-signed LEASE authorizing an agent to perform an action until it expires. A customer-run gateway verifies the lease offline (fail-closed) before letting the action through. This is the guard on a money/data-moving action. Free tier: 1 active lease (guarded agent).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limNoOptional limit string the gateway enforces, e.g. 'amount<=50usd'.
agentYesIdentifier for the agent being authorized (1-128 chars).
ttl_sYesLease lifetime in seconds, 5..604800. Keep it short; renew to extend.
actionYesThe action class this lease authorizes, e.g. 'stripe.refund' (1-128 chars).
vigil_keyNoLegacy credential argument. Prefer the HTTP Authorization: Bearer header; omit this argument when that header authenticates the request.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does well: it discloses the lease is short-lived, Ed25519-signed, verified offline, fail-closed, and limited to 1 active lease on the free tier. It does not describe the return value or failure/error behavior, but the core behavioral profile is clearly conveyed.

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 tight sentences deliver the core behavior, the verification model, the operational boundary, and the free-tier limit. Every sentence earns its place, and the most important information is front-loaded.

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?

Given the 5-parameter schema and 100% parameter coverage, the description provides a strong overall picture: what the lease is, how it is verified, what actions it guards, and a hard free-tier constraint. The main gap is that no output schema exists and the description does not explicitly state what the function returns or what happens when the free-tier limit is exceeded.

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%, and each parameter already has a meaningful description with constraints. The tool description adds context about lease semantics but does not add parameter-level meaning beyond the schema, so the baseline score of 3 applies.

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?

The description names a specific verb ('Grant'), a specific resource ('short-lived, Ed25519-signed LEASE'), and the exact purpose: authorizing an agent to perform an action until expiry. It also distinguishes this tool from siblings like vigil_renew_lease and vigil_revoke_lease by focusing on the initial granting act and calling it 'the guard on a money/data-moving action.'

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?

The description gives clear context: this is the guard for authorizing money/data-moving actions, with offline fail-closed verification by a customer-run gateway. It implies when to use it but does not explicitly contrast it with sibling tools such as renew, revoke, or verify, so no exclusion or alternative guidance is stated.

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.

TDQS

B3.3/5.0
Disambiguation4/5

The tools are organized into clear domains—receipts/notarization, leases, journals, watchdogs, and account management—and each tool has a distinct resource or action. Minor confusion is possible between vigil_anchor and vigil_anchors, or between the various verification tools, but the descriptions generally make the boundaries clear.

Naming Consistency3/5

All tools share the vigil_ prefix and use snake_case, but the verb/noun ordering is inconsistent: vigil_get_receipt and vigil_delete_watchdog use verb-first, while vigil_journal_get and vigil_journal_delete use resource-first. Several tools are also pure nouns (vigil_chain, vigil_usage, vigil_lease_status), making the overall pattern mixed but still readable.

Tool Count2/5

At 26 tools, this exceeds the 25+ threshold and feels heavy for a single MCP server, even though the tools cluster into several subsystems. Some status, info, and lease-listing tools could plausibly be consolidated without losing much capability.

Completeness4/5

The core lifecycle coverage is strong: receipts can be created, read, verified, and audited via the chain; leases have grant/renew/revoke/status/verify; journals have full CRUD; watchdogs have set/delete/status/heartbeat. Minor gaps exist, such as no direct way to update a watchdog without deleting and recreating it, but these are workable.

Resources