Skip to main content
Glama

slice_files_for_agent

Filter a file list to show only those owned by a specific agent. Uses path hints and content sniffing to determine ownership.

Instructions

Filter a file list to those owned by a specific agent. Uses path hints + content sniff. Reads up to 16384 bytes per file when workspace_root is set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYes
filesYes
read_contentNo
workspace_rootNo
Behavior2/5

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

With no annotations, the description must cover behavioral traits. It discloses the read limit (16384 bytes) and that it depends on workspace_root, but lacks information on whether the tool is read-only, what happens to the original files, or any side effects. This is insufficient for a tool that reads file content.

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 two sentences, front-loaded with the core purpose, and contains no fluff. It is concise but could benefit from a clearer separation of behavior and parameters.

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

Completeness2/5

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

Given the tool's complexity (filtering with content sniffing) and lack of output schema, the description is incomplete. It does not explain the return value, error conditions, or how the filtering logic works in detail. Significant gaps remain.

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

Parameters1/5

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

Schema coverage is 0%, so the description must explain parameters. It does not mention the meaning of 'agent', 'files', 'read_content', or 'workspace_root' except a brief note on workspace_root. No parameter-level detail is provided, leaving the agent without guidance on how to use the inputs.

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 verb 'Filter' and the resource 'a file list to those owned by a specific agent'. This distinguishes it from the sibling 'slice_files_for_task' which likely filters by task. The purpose is specific and unambiguous.

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?

The description provides some context on how it works ('Uses path hints + content sniff') but does not explicitly state when to use this tool over its siblings, nor does it mention any exclusions or prerequisites. Usage guidance is implied but not explicit.

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/ggemba/squad-mcp'

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