Skip to main content
Glama

get_document_id_from_title

Read-onlyIdempotent

Find a document ID by searching for its exact or partial title. Returns best match if exact title is not found.

Instructions

Locates a document ID by searching for its title.

IMPORTANT: This tool first checks for exact title matches (case-insensitive). If none are found, it returns the best partial match instead. This is useful when you're not sure of the exact title but need to reference a document in other operations. Results are more accurate when you provide more of the actual title in your query.

Use this tool when you need to:

  • Find a document's ID when you only know its title

  • Get the document ID for use in other operations

  • Verify if a document with a specific title exists

  • Find the best matching document if exact title is unknown

Args: query: Title to search for (can be exact or partial) collection_id: Optional collection to limit the search to

Returns: Document ID if found, or best match information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
collection_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already indicate readOnlyHint and idempotentHint. The description adds valuable behavioral details: case-insensitive exact match first, then best partial match fallback, and accuracy improving with more title input. No contradiction with annotations.

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 well-structured with a clear opening sentence, an important note, and a bulleted list of use cases. It is not overly long, but the IMPORTANT section could be slightly more concise.

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

Completeness4/5

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

Given the tool's simplicity (2 parameters, output schema present), the description covers the main behavior, return value, and use cases effectively. The mention of 'best match information' in returns is adequate without duplicating the output schema.

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 0%, so the description must compensate. It briefly explains both parameters: 'query: Title to search for (can be exact or partial)' and 'collection_id: Optional collection to limit search.' This adds basic meaning but lacks detail on format or constraints.

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 function: 'Locates a document ID by searching for its title.' It also explains the matching behavior (exact then partial), which distinguishes it from sibling search tools like 'search_documents' or 'read_document'.

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?

The description explicitly lists four use cases for when to use the tool, such as finding an ID when only the title is known or verifying existence. It lacks explicit 'when not to use' guidance but provides clear context for appropriate usage.

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/fastmcp-me/mcp-outline'

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