Skip to main content
Glama

DiscardReadEnvelope

Discard a collection of recorded read calls, end its handle, and return how many calls it held.

Instructions

[read-only] Discards a collection of recorded read calls and ends its handle, giving how many calls it held.

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": {
      "envelope_handle": "<envelope_handle>"
    },
    "name": "DiscardReadEnvelope"
  }
}

Input Schema

NameRequiredDescriptionDefault
envelope_handleYesThe handle of the collection, as its creation gave it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.1.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose that the handle is ended and that a count is returned, but it opens with a '[read-only]' tag that sits awkwardly against 'Discards ... ends its handle' — an agent cannot tell whether this mutates state or is a safe read. It also omits whether the discard is irreversible, what happens to the recorded calls, and how an invalid or already-discarded handle is handled.

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?

One sentence, front-loaded with the verb and the outcome, with no filler. The bracketed '[read-only]' prefix is the only questionable element, since it is both terse and potentially misleading.

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?

For a one-parameter tool with no output schema, the description usefully states the return value (a count) and that the handle is ended. It is still incomplete on irreversibility, post-discard handle validity, and error behavior, which matter for an operation named 'Discard'.

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% and the single parameter already documents itself as 'the handle of the collection, as its creation gave it.' The description adds nothing about the handle beyond implying it is consumed, so the baseline of 3 applies.

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?

The description gives a specific verb ('Discards') and a concrete resource ('a collection of recorded read calls') and even names the return value ('how many calls it held'), which distinguishes it from CreateReadEnvelope/ExecuteReadEnvelope. The only wobble is terminology: it calls the target a 'collection of recorded read calls' rather than an 'envelope', so an agent must map the tool name to the described object itself.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as ListReadEnvelopes for inspecting handles first. Cleanup-after-reads is only inferable from the verb 'Discards' and the phrase 'ends its handle'.

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

Deploy Server

Other Tools