Skip to main content
Glama

read_scratchpad

Retrieves the full execution or terminal log stored in the scratchpad for a given memory ID, using an optional workspace directory to locate the log.

Instructions

Reads the full execution or terminal log offloaded to the scratchpad (.botex/scratchpad/<memory_id>.log).

Args: memory_id: The ID of the scratchpad entry (e.g. 'mem_exec_a1b2c3d4'). workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory.

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": {
      "memory_id": "<memory_id>"
    },
    "name": "read_scratchpad"
  }
}

Input Schema

NameRequiredDescriptionDefault
memory_idYes
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add real behavioral context: it names the file path the content lives in and explains how workspace_dir resolves (empty = engine.default_workspace from config, else server's current directory). It omits what happens when memory_id is unknown, whether output is truncated for large logs, or any size limits.

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?

A single front-loaded purpose sentence followed by a tight Args section; every line carries information and there is no filler or repetition.

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?

An output schema exists, so return values need not be described, and both parameters are documented. However, for a log-retrieval tool with no annotations, the absence of error behavior, missing-entry handling, and truncation/size semantics leaves the definition only minimally sufficient.

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?

Schema description coverage is 0%, so the description must compensate, and it does: memory_id is illustrated with a concrete example format ('mem_exec_a1b2c3d4') and workspace_dir gets its full default-resolution rule. The only gap is that memory_id's provenance (where such an ID comes from) is unstated.

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 specific verb and resource ('reads the full execution or terminal log offloaded to the scratchpad') and even gives the on-disk location pattern (.botex/scratchpad/<memory_id>.log), which makes the resource concrete. It does not, however, differentiate itself from siblings like read_memory or recall_memory, which an agent might plausibly reach for first.

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 guidance and no mention of alternatives or prerequisites. The phrase 'full execution or terminal log' weakly implies the use case (retrieving complete offloaded output rather than summarized memory), but the agent must infer it and receives no exclusion criteria against the memory-reading siblings.

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