Skip to main content
Glama

ck_result_peek

Read-onlyIdempotent

Inspect stored output from a completed delegated run by referencing the result and package root, and read only a byte range to avoid loading large outputs into context.

Instructions

Peek at the full stdout of a previously completed ck_delegate embedded run without loading it all into context. Use result_ref and package_root returned by ck_delegate to locate the stored output. Supports byte-range reads: pass peek_bytes to limit how much to load, and offset to skip ahead. Use result_length (returned by ck_delegate) to decide whether to peek, pass the ref downstream, or skip loading entirely. This is the RLM variable-encapsulation pattern: treat large sub-agent outputs as named references, not inline blobs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetNoByte offset to start reading from (default 0).
peek_bytesNoHow many bytes to read (default 2000, max 32000).
package_rootYespackage_root returned by ck_delegate for the completed embedded run.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
outputNo
truncatedNo
bytes_readNo
total_bytesNo
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint. Description adds byte-range support, limits, and that it works on completed runs only. No contradictions.

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?

Concise but informative: 4 sentences that progressively build from purpose to parameters to decision logic. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With output schema present, description covers all necessary aspects: what it does, how to call it, what parameters mean, and when to use alternatives. Complete for its complexity.

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

Parameters5/5

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

Schema coverage is 100%, but description adds crucial context: package_root origin, default and max values for peek_bytes and offset, and usage of result_ref (even though not in schema).

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 peeks at stdout from a ck_delegate run, distinguishes it from loading full context, and specifies the key inputs (result_ref, package_root).

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

Usage Guidelines5/5

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

Provides explicit when-to-use (after ck_delegate), how-to-use (use result_ref and package_root), and decision criteria (use result_length to decide peek, pass, or skip). Mentions the RLM pattern.

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/aryaminus/controlkeel'

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