Skip to main content
Glama

Export reads

export_reads
Read-onlyIdempotent

An approver's export of who read which documents (and which search hits returned which nodes), limited to what they may see. Includes reads that arrived through the console, MCP and the REST API. Search words are never returned — only a query hash. A person who approves nothing is refused. Same core as GET /api/reads/export (#2248).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_reads"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO end (exclusive); omit for now
fromNoISO start (inclusive); omit for the beginning
seatNothe seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for a whole lease from that call
acting_asNoan agent identity below you, or one working in a folder you can write (pass its seat too), by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person

Output Schema

NameRequiredDescriptionDefault
readsYes
scopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / seat / description
      Previous value: -"the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for its lease"New value: +"the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for a whole lease from that call"
  2. Changed1 schema field changed
    • changedInput schema / properties / acting_as / description
      Previous value: -"an agent identity below you, by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person"New value: +"an agent identity below you, or one working in a folder you can write (pass its seat too), by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person"
  3. Changed2 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / reads / items / additionalProperties
      Removed value: -false
  4. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive, idempotent, closed-world, so the bar is low, yet the description still adds real substance: the export covers reads from the console, MCP and REST API; search terms are redacted to a query hash; and unauthorized (non-approver) callers are refused. Those are privacy and authorization behaviors an agent could not infer from annotations or schema.

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 core purpose is front-loaded, followed by useful qualifiers in a logical order, and most sentences earn their place (redaction, authorization, source coverage). The trailing 'Same core as GET /api/reads/export (#2248)' is an implementation reference of marginal value to an agent.

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?

With a full output schema, 100% parameter coverage and rich annotations, the description needs only to cover scope, authorization and redaction, which it does. Gaps are minor: no mention of export size limits, pagination or time-range behavior when from/to are omitted.

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 schema already explains from, to, seat and acting_as; the description adds no additional syntax, default or interaction detail for any of them. Baseline 3 is appropriate when structured fields carry the parameter burden.

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 precise verb+resource: an export of who read which documents, with the secondary case of which search hits returned which nodes, scoped to an approver's visibility. An agent knows exactly what it gets back. It doesn't name a sibling (e.g., read or search) as a non-equivalent alternative, so it stops 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?

Gives a caller precondition ('a person who approves nothing is refused') and a scope limit ('limited to what they may see'), which implies when this tool is applicable. However, it never says when to prefer this over the sibling read or search tools, nor does it state exclusions explicitly.

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.

Resources