Skip to main content
Glama

search_procedure

Search loaded SOPs to answer operational questions and return matching passages with document, version, section, and excerpt citations.

Instructions

Search loaded SOPs for an answer to an operational question. Returns matching passages with full source attribution: document, version, section and excerpt. Latest document version is preferred when several versions of the same procedure are loaded.

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": {
      "query": "<query>"
    },
    "name": "search_procedure"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries real weight here and does disclose useful behavior: the return contains full source attribution (document, version, section, excerpt) and the ranking policy prefers the latest version when duplicates are loaded. That is meaningful context beyond a bare "search" claim. It stops short of covering result volume limits or empty-result behavior, which keeps it off a 5.

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?

Three short sentences, zero filler, with the purpose front-loaded and the return contract and version-preference rule following in descending order of importance. Nothing is repeated from the schema or restated from the tool name.

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?

For a two-parameter read-only lookup with no output schema and no annotations, the description covers purpose, return fields, and version-selection behavior, which is most of what an agent needs. The remaining gap is operative: nothing explains how to phrase `query` or what `top_k` controls, so an agent must guess at result-set sizing.

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

Parameters2/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 for both parameters and does not — `query` is left completely undefined (natural language question? keyword string? boolean syntax?) and `top_k` is never mentioned despite having a default of 5 and an unknown upper bound. The only implicit tie-in is that the tool answers "an operational question", which gives no formatting guidance for the query string.

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 names a specific verb and resource ("Search loaded SOPs") and states the output shape (passages with document, version, section, excerpt), so an agent knows exactly what it gets back. It is distinguishable from list_documents/ingest_documents by the word "search" and the answer-seeking framing, though it never explicitly contrasts itself with a sibling.

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?

Usage is implied by "loaded SOPs" and "operational question" — the agent can infer this is for answering questions over already-ingested documents. However, there is no explicit when-to-use / when-not, no statement of what happens when nothing matches, and no pointer to an alternative sibling such as list_documents for enumeration.

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