Skip to main content
Glama

search_document

Searches a standard or qualification PDF for a keyword and returns matching passages with surrounding context, so users can locate specific topics without reading the full document.

Instructions

Bir standardın ya da yeterliliğin PDF'inde kelime arar ve geçtiği yerleri çevresiyle döndürür. Tüm metni okumadan belirli bir konuyu (sınav, iş sağlığı, bilgi ve beceri) bulmak için.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>",
      "query": "<query>"
    },
    "name": "search_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesStandart ya da yeterlilik kodu
queryYes
max_hitsNoEn fazla kaç yer (varsayılan 10)
revisionNoYalnız yeterliliklerde

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the core mechanic — word search inside a PDF returning hits with surrounding context — but says nothing about matching semantics (case sensitivity, word boundaries), what happens when the code is not found or the document is missing, or whether revision only applies to qualifications. For a zero-annotation tool this leaves meaningful gaps.

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?

Two tight sentences with the action and return shape front-loaded, followed by the usage motivation. The parenthetical topic examples (exam, occupational health, knowledge and skill) are the only elaboration and they earn their place by clarifying the intended query type.

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?

With four parameters, no annotations, and no output schema, the definition covers the essentials — what it searches and roughly what it returns. It is still thin on failure modes, matching rules, and the code/revision relationship, which an agent would need to call it correctly the first time.

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 coverage is 75%, so most parameters (code, max_hits, revision) are already documented in the schema. The description only adds the notion that 'query' is a word to be located and that results come back with context; it adds nothing about code format or how revision interacts with the code.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it searches for a word inside the PDF of a standard or qualification and returns the matching locations with their surrounding context. The phrase 'without reading the entire text' implicitly distinguishes it from the read_standard/read_qualification siblings, but no sibling is named explicitly, so the differentiation is only partial.

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?

It gives a clear usage condition: use this to locate a specific topic (exam, occupational health, knowledge and skill) without reading the whole document. However, it never states when NOT to use it, nor does it point to search_standards or search_qualifications for discovering which document to search first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.