Skip to main content
Glama

Search templates

search_templates
Read-onlyIdempotent

Finds up to 25 templates by title, newest first. Returns each template's id and title, plus next_cursor for the next page. Call get_template with an id to see its roles before sending.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWords to find in template titles, like "NDA". Omit to list the newest templates.
cursorNoThe next_cursor from the previous result, for the next page. Omit for the first page.

Output Schema

NameRequiredDescriptionDefault
templatesYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"The `next_cursor` value from the previous page. Treat it as opaque."New value: +"The next_cursor from the previous result, for the next page. Omit for the first page."
    • changedInput schema / properties / q / description
      Previous value: -"Literal, case-insensitive text to find. Trimmed to 1–100 characters; wildcard characters have no special meaning."New value: +"Words to find in template titles, like \"NDA\". Omit to list the newest templates."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "templates": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "templates",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds behavior not in the annotations: the 25-result cap, newest-first sort order, and the next_cursor pagination mechanism. It omits anything about authorization scope or behavior when q matches nothing.

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, front-loaded with purpose and scope, then return shape, then the next-step pointer. No filler or repeated information.

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?

An output schema exists, so return values need not be spelled out, yet the description still covers the essentials an agent needs to call it correctly: result cap, ordering, pagination, and the follow-up tool. Nothing material is missing for a two-parameter lookup tool.

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 100%, so both q and cursor are already documented in the schema, and the description largely echoes those meanings ('by title', 'next page'). With the schema doing the heavy lifting, baseline 3 is appropriate; no extra syntax or matching-rule detail is added.

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?

States a specific verb and resource ('Finds ... templates by title') plus scope details: a hard cap of 25 results and newest-first ordering. It also distinguishes itself from the sibling get_template by framing that tool as the detail-fetch step, so the agent can route without opening either schema.

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?

Gives a concrete follow-up rule — call get_template with an id to see roles before sending — which tells the agent when this tool is only a discovery step. It does not state when-not-to-use or compare against search_documents, but the template-specific framing makes the domain clear.

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.