Skip to main content
Glama

search_templates

Read-only

Search for legal agreement templates by keyword. Uses BM25 ranking to find the most relevant templates matching your query. Searches across template names, descriptions, categories, sources, and field definitions. Use this instead of list_templates when you know what kind of agreement you need.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query. Examples: "NDA", "employment offer letter", "NVCA stock purchase", "data processing GDPR", "non-compete Wyoming".
sourceNoOptional source filter (exact, case-insensitive). Values: "Common Paper", "Bonterms", "Y Combinator", "NVCA", "OpenAgreements".
categoryNoOptional category filter (exact, case-insensitive). Values: confidentiality, employment, sales-licensing, data-compliance, deals-partnerships, professional-services, venture-financing, other.
max_resultsNoMaximum results to return (1-50, default 10).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description goes beyond annotations by revealing the BM25 ranking algorithm and specifying the exact searchable fields (names, descriptions, categories, sources, field definitions). This provides useful behavioral context beyond what structured data conveys, though it omits details like result count handling or ordering behavior.

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 three sentences long and front-loaded with the primary purpose in the first sentence. The second sentence adds valuable ranking details, and the third gives usage guidance. No filler or redundancy—every sentence earns its place.

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

Completeness5/5

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

For a search tool, the description is complete: it states what it searches, how it ranks results, and when to use it. There is no output schema, so return value explanation is not required, and the parameter scope is fully covered by the schema. The guidance about using it instead of list_templates completes the contextual picture.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. However, the description adds meaning for the query parameter by stating it searches across names, descriptions, categories, sources, and field definitions, giving insight into how the query behaves. This is more than just restating the schema and adds value for parameter understanding.

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 a specific verb ('Search') and resource ('legal agreement templates'), and further specifies that it searches by keyword. It is explicitly differentiated from the sibling tool list_templates by saying 'Use this instead of list_templates when you know what kind of agreement you need,' making it obvious what this tool does that others don't.

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 gives an explicit usage guideline: 'Use this instead of list_templates when you know what kind of agreement you need.' This is a clear when-to-use instruction with a named alternative, which is exactly what the dimension asks for. It also implies that list_templates is for browsing all templates, adding further context.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clear and distinct purpose: template browsing (list_templates, search_templates, get_template), template filling (fill_template), signature workflow (send_for_signature, check_signature_status). No overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (e.g., list_templates, check_signature_status). Verbs and nouns are clearly chosen, making the pattern predictable.

Tool Count5/5

With 6 tools covering the core workflow of template discovery, filling, and e-signature, the count is well-scoped and appropriate for the server's purpose. No unnecessary tools and no critical missing functionality.

Completeness5/5

The tool set covers the full lifecycle of working with legal agreement templates: discover (list, search, get), create filled document (fill_template), send for signature (send_for_signature), and retrieve signed PDF (check_signature_status). No obvious gaps for the intended use case.