Skip to main content
Glama

retrieve

Access specific documents in your workspace by ID or metadata filter. Use this tool to retrieve known documents from indexed collections like projects, libraries, rules, or scratchpad.

Instructions

Retrieve documents by ID or metadata filter. Use this to access specific documents when you know the document ID. Prefer search for discovery, retrieve for known documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdNoDocument ID to retrieve
collectionNoCollection to retrieve from (default: projects)
filterNoMetadata filter key-value pairs
limitNoMaximum results (default: 10)
offsetNoPagination offset (default: 0)
projectIdNoProject ID for projects collection
libraryNameNoLibrary name for libraries collection
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool's purpose but doesn't describe important behavioral aspects like authentication requirements, rate limits, error conditions, or what happens when multiple documents match a filter. The description is adequate but lacks depth for a tool with 7 parameters.

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?

The description is perfectly concise with two sentences that each serve a clear purpose: the first states what the tool does, the second provides usage guidance. There's no wasted language and it's front-loaded with the core functionality.

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?

For a tool with 7 parameters, no annotations, and no output schema, the description is somewhat incomplete. While it covers purpose and usage guidelines well, it lacks information about return values, error handling, and behavioral constraints that would be important for proper tool invocation. The description is adequate but could provide more context given the tool's complexity.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by mentioning 'ID or metadata filter' which corresponds to documentId and filter parameters, but doesn't provide additional semantic context. This meets the baseline for high schema coverage.

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's purpose with specific verbs ('retrieve documents') and resources ('by ID or metadata filter'). It distinguishes from sibling tools by explicitly naming 'search' as the alternative for discovery, making the distinction clear.

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?

The description provides explicit guidance on when to use this tool ('when you know the document ID') and when to use alternatives ('Prefer `search` for discovery, `retrieve` for known documents'). This gives clear context for tool selection among siblings.

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/ChrisGVE/workspace-qdrant-mcp'

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