Skip to main content
Glama

Search Projects and Tasks

search
Read-onlyIdempotent

Search projects, tasks, briefs, logs and artifacts by keywords: a few nouns naming the subject search every project in one call. Returns ranked projects with their matching tasks. weak=true means nothing stands out: rephrase before browsing. No projects with complete=true means nothing exists. Open a hit with read_task(task_id, entry_id) or read_artifact.

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
limitNoHow many matching tasks per page, grouped under their projects; with task_id, how many of its entries.
queryYesKeywords naming the subject, not the action, such as 'stripe webhook retries'. Words match in any order, ignoring case; a phrase in double quotes matches exactly.
cursorNoThe next_cursor from the previous page, unchanged; omit for the first page.
task_idNoSearch only this task: its ID or ref. Returns its matching entries.
project_idNoSearch only this project: its ID or key.

Output Schema

NameRequiredDescriptionDefault
weakNoTrue if words are scattered without a clear match; rephrase before browsing.
matchYesall, partial or none.
titlesNoTasks whose title contains a query word (when weak).
entriesYesAlways empty (legacy field).
noticesNoVenom reminders to read first.
completeYesTrue if entire scope was searched; empty projects then means nothing exists.
examinedYesRecords examined (legacy field).
projectsYesRanked matching projects.
searchedYesRecords searched.
next_cursorNoNext page cursor.
total_tasksYesMatching tasks across all pages.
dropped_termsNoExtra query words omitted beyond the 12-term limit.
more_projectsNoAdditional matching projects; search with project_id.
examined_bytesYesBytes examined (legacy field).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"To continue a list, the next_cursor the previous page returned, passed unchanged. Omit it to start from the first page."New value: +"The next_cursor from the previous page, unchanged; omit for the first page."
    • changedInput schema / properties / limit / description
      Previous value: -"How many matching tasks to show, grouped under their projects (with task_id, how many of its entries); page on with cursor for more."New value: +"How many matching tasks per page, grouped under their projects; with task_id, how many of its entries."
    • changedInput schema / properties / project_id / description
      Previous value: -"Search only this project. Omit both scopes to search everywhere."New value: +"Search only this project: its ID or key."
    • changedInput schema / properties / query / description
      Previous value: -"Keywords naming the subject, not the action, such as 'stripe webhook retries'. Words match in any order, ignoring case; put a phrase in double quotes to match it exactly."New value: +"Keywords naming the subject, not the action, such as 'stripe webhook retries'. Words match in any order, ignoring case; a phrase in double quotes matches exactly."
    • changedInput schema / properties / task_id / description
      Previous value: -"Search only this task; returns its matching entries."New value: +"Search only this task: its ID or ref. Returns its matching entries."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world and non-destructive, so the description's added value is response semantics: ranked grouping, the weak=true signal meaning 'rephrase before browsing', and complete=true meaning 'nothing exists'. That is genuinely useful behavior beyond structured fields, though paging behavior (cursor) is left to the 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?

Four short sentences, front-loaded with what is searched and what comes back, then the two signal flags, then the follow-up tools. Nothing is redundant, though the phrasing 'a few nouns naming the subject search every project in one call' is slightly compressed and reads awkwardly.

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?

With five parameters, an output schema and full annotation coverage, the description covers purpose, query style, result interpretation and next steps. It does not need to explain return values because an output schema exists; only explicit routing versus the list_* siblings is absent.

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 the schema already explains query, limit, cursor, task_id and project_id in detail. The description's phrasing about nouns and about task_id narrowing to entries largely restates the schema, adding no syntax or format meaning beyond it. Baseline 3 is appropriate.

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 opens with a specific verb and resource set: keyword search across projects, tasks, briefs, logs and artifacts, and states the return shape ('ranked projects with their matching tasks'). It does not explicitly contrast itself with list_projects/list_tasks, so an agent must infer when keyword search beats browsing, which keeps it short of a 5.

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?

It gives real query-formulation advice ('a few nouns naming the subject, not the action'), tells the agent to rephrase when weak=true, and routes follow-up reads to read_task/read_artifact. It never states a when-not-to-use condition relative to the list_* siblings, so it is clear context without explicit exclusions.

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.