Skip to main content
Glama

run_term_library_query

Run a prebuilt Term Library query by id (e.g. "auto-renew-tight-notice", "high-value-renewing-soon"). Returns matching contracts with vendor, value, renewal date, and notice window. Pass an unknown query_id to discover the available list.

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_id": "<query_id>"
    },
    "name": "run_term_library_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
query_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It partially meets it by disclosing the return payload (vendor, value, renewal date, notice window) and the unknown-id fallback behavior, but it never says the operation is read-only, never mentions the 500-item cap or pagination, and never says whether results are complete or truncated.

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 tight sentences: purpose first, then return shape, then the edge-case behavior. Nothing is repeated and every sentence carries information the agent could not get from the schema.

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 tool with no annotations and no output schema, the description covers the core need: what the ids mean, what comes back, and what happens on a bad id. The remaining gap is limit/cap behavior, which matters for a query that could match many contracts.

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 does real work for query_id by giving two example values and defining the unknown-id path, but the limit parameter is never mentioned in either the schema or the description, so half the payload remains semantically unexplained.

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?

States a specific verb and resource ('Run a prebuilt Term Library query by id') and grounds it with two concrete example query ids, so the agent knows this is a canned-query lookup rather than an arbitrary filter. It doesn't explicitly contrast with search_contracts or list_contracts, so the distinction from those siblings is inferred from the word 'prebuilt' rather than stated.

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 implies use when a known/canned query id matches the user's intent, and it gives one genuinely useful operational hint: pass an unknown query_id to enumerate available queries. However, it never names an alternative tool or states when to prefer free-form search over the Term Library, leaving the routing decision to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources