Skip to main content
Glama

envelope_apply

Checks whether an authority envelope is active and covers the requested verb and arguments before acting, records the use in the ledger, refuses when grant is missing, expired, or out of scope.

Instructions

Check an authority envelope — an operator-granted, scoped permission — BEFORE acting under it: verifies envelope_id is active and covers verb with the given call_args, then appends a citation to the FRANK ledger recording the use against project/session. Refuses with the reason when the grant is missing, expired, or out of scope.

#333 double-charging note: verb in VERB_LEVEL_ENFORCED_VERBS (currently just "dispatch") now cites itself from inside its own tool handler (dispatch_send) — that handler is authoritative for the act. Calling envelope_apply first for one of those verbs and then performing the act would charge the grant's quota twice for one real act, so for those verbs this tool is advisory-only: it still runs the full check() (so a caller can preflight "would this be granted?" without side effects) but does NOT write a citation — cited_before_act comes back False and note says so. The verb handler cites exactly once, at the act, regardless of whether envelope_apply was called first. Every other verb is unchanged: still checks AND cites here, since no other verb has a handler-side citation path yet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
verbYes
app_idYes
projectYes
sessionYes
call_argsYes
envelope_idYes
Behavior5/5

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

With no annotations, the description takes on full responsibility for disclosing side effects and edge cases. It states that the tool appends a citation, refuses with a reason for missing/expired/out-of-scope grants, and explicitly explains the double-charging workaround for dispatch verbs, including that `cited_before_act` returns False and no citation is written. This is exceptional transparency.

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 description is front-loaded with the core purpose in the first sentence, and the #333 note provides essential operational detail in a structured way. While the note is long, every sentence adds necessary information about edge-case behavior, making it appropriately sized for the tool's complexity.

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 6-parameter tool with no annotations or output schema, the description covers the main flow, error handling, and the notable dispatch exception. It lacks an explicit statement of return values for the normal path, and app_id remains unexplained, but overall it is nearly complete and leaves few critical gaps.

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?

The schema provides only parameter names with no descriptions, so the description must explain their meaning. It does: envelope_id, verb, call_args, project, and session are all contextualized within the verification and citation flow. However, app_id is never mentioned, leaving one of the six parameters underspecified despite the low schema coverage.

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 clearly states the tool's function: checking an authority envelope before acting under it, verifying the envelope is active and covers the verb/call_args, and appending a FRANK ledger citation. It distinguishes itself from sibling tools by framing the operation as a pre-action check-and-cite flow, and names the specific resource (authority envelope).

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 explicitly says to use this tool BEFORE acting under an envelope, and provides a clear when-not-to-use case for dispatch verbs, where it is advisory-only and the verb handler (dispatch_send) is authoritative. It names this alternative handler, though it does not enumerate other alternatives for non-dispatch verbs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rudi193-cmd/willow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server