Skip to main content
Glama

create_context_receipt

Create a structured receipt from documents that captures selected context, omitted context, dependencies, and token usage. Optionally persists a recovery bundle for omitted chunks.

Instructions

Create a Context Receipt from supplied documents.

documents_json may be:

  • a JSON object mapping source path to text

  • a JSON array of [source_path, text] pairs

  • a JSON array of objects with source_path/text or source/content keys

The receipt records selected context, omitted relevant context, dependency links, fingerprints, token ratio, warnings, and risk controls. It does not call an LLM.

Set recoverable=True to also persist a project-local recovery bundle, so any omitted chunk can later be recovered byte-exact and verified via recover_receipt_omission.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
recoverableNo
chunk_tokensNo
token_budgetNo
documents_jsonYes
overlap_tokensNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses that the tool does not call an LLM and details what the receipt records. However, with no annotations, it omits behavioral traits like side effects (e.g., file writing), required permissions, or error conditions, leaving gaps in 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 concise and front-loaded with the main action. It uses clear language and bullet-like formatting for documents_json. Minor improvements could include a more structured listing of parameters.

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?

Given the tool has 6 parameters and several siblings, the description misses key context: it does not explain the query parameter, token parameters, or how this tool differs from create_context_receipt_from_path beyond input method. The output schema existence lessens the need for return value details, but parameter gaps remain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description must explain all parameters. It thoroughly explains documents_json and recoverable, but fails to cover query, chunk_tokens, token_budget, and overlap_tokens, leaving 4 of 6 parameters undefined.

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 creates a Context Receipt from supplied documents, distinguishing it from similar siblings like create_context_receipt_from_path. It also explicitly notes it does not call an LLM, clarifying its non-AI nature.

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 implies usage by focusing on supplied documents, contrasting with path-based sibling. However, it lacks explicit when-to-use or when-not-to-use guidance, and does not directly address alternatives beyond the recoverable option.

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/juyterman1000/entroly'

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