Skip to main content
Glama

Search

search
Read-onlyIdempotent

Search what you may read: chats by who or the room's name (never message text), plans, public profiles. Returns ids for fetch. Nothing with someone under 18 in it.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWords to look for, e.g. "Elin", "climbing friday" or "how I give feedback". Empty = recent items.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "results": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "type": "string"
      -          },
      -          "title": {
      -            "type": "string"
      -          },
      -          "url": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "title",
      -          "url"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "results"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: results are permission-scoped ('what you may read'), matching excludes message bodies, entities involving people under 18 are filtered out entirely, and the return is ids rather than content. Those are material behaviors an agent could not infer from the annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with scope and followed by the return contract and the exclusion. Nothing is redundant. The clipped, telegraphic phrasing ('Search what you may read', 'Nothing with someone under 18 in it') is efficient but slightly ambiguous about whether the age filter is a hard constraint or a caveat.

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 single-parameter, read-only lookup with no output schema and full annotation coverage, the description supplies what matters: searchable domains, matching rules, the id-return contract that points to fetch, and the age-related content restriction. The remaining gap is the unresolved overlap with search_profiles, which an agent would need settled in order to choose confidently.

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% and the query parameter already carries examples and the 'empty = recent items' rule, which sets the baseline at 3. The description goes further by specifying what the query string is matched against — people/room names rather than message text — which materially changes how an agent should phrase a query.

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 (search) and enumerates the searchable resources: chats (matched by participant or room name), plans, and public profiles. It also states the key negative — message text is never searched. It stops short of distinguishing itself from the sibling search_profiles, which appears to overlap with the 'public profiles' scope, so an agent may be unsure which one to pick.

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?

There is useful implied workflow guidance: 'Returns ids for fetch' tells the agent this is a lookup step feeding fetch. The exclusion 'never message text' steers the agent away from using search for message content. However, there is no explicit when-to-use versus search_profiles, find_people, list_members, or read_chat, which is a notable miss given how many similarly scoped siblings exist.

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.