Skip to main content
Glama

memory_batch

Read multiple palace files in one call, returning their contents with path headers. Missing files are noted inline without errors, allowing partial results.

Instructions

Read multiple palace files in a single call.

paths is a list of paths relative to the palace root (maximum _MAX_BATCH_PATHS entries). Returns all files joined by \n---\n, each section headed by ## <path>.

Missing files, directories, and path-traversal violations are noted inline and do not raise exceptions, so partial results are always returned for valid calls. Raises ValueError only for invalid arguments (e.g. more than _MAX_BATCH_PATHS paths).

Returns an empty string for an empty paths list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses behavior: returns joined files with headers, handles missing/invalid paths inline without exceptions, raises ValueError for invalid args, returns empty string for empty list. Transparent about internal constant _MAX_BATCH_PATHS.

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 two-paragraph description, no redundancy. Front-loaded with purpose, then clear parameter descriptions. Every sentence adds value.

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?

Given the simple parameter (one array) and existence of output schema, the description covers input expectations, return format, error handling, and edge cases (empty list, missing files). Complete for this tool.

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 coverage is 0%, but description adds meaning: 'paths' is a list of relative paths with a maximum count, and explains format. Provides enough context beyond the bare 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 it reads multiple palace files in a single call, specifying the action (read multiple) and resource (palace files). It differentiates from siblings like memory_read (single file) and memory_write (write operation).

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?

Provides context on when to use (batch reading) and behavior details (max paths, partial results). Does not explicitly list alternatives but implies usage for multiple files versus single file reads.

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/Nano-Nimbus/locus'

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