Skip to main content
Glama

Search tasks, documents, and taxonomy

workspace_search
Read-onlyIdempotent

Search and list open or archived notes, tasks, and documents without reading full bodies; filter by tags, lists, dates, folders, or scope and run line searches inside a document.

Instructions

Search or list open and archived items without reading full bodies. Any task filter excludes docs. mode is inferred if omitted (empty {} returns full taxonomy).

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

Input Schema

NameRequiredDescriptionDefault
docNoDocument ID for mode="in_doc" line search with `query`
tagNoFilter tasks by tag (# optional)
listNoFilter tasks by exact list name
modeNoQuery mode; inferred from params if omitted
afterNoPagination offset when `total` exceeds returned count
limitNoMax results (default 10/max 100; project 50/100; folder 50/200)
linesNoInclude matching excerpt line (default true; false returns titles only)
queryNoSearch terms (accents ignored; quote phrases); optional when filtering
scopeNoSearch scope (default "either")
aroundNoContext lines each side of an in_doc match (0-10, default 1)
folderNoFilter/list docs by folder name, path, or ID
sourceNoExact source URL/ID deduplication check (not with `query`)
date_toNoTasks with date/deadline <= YYYY-MM-DD
part_ofNoParent task ID; alone gives grouped project stage summary
by_agentNoFilter tasks: true = agent-created, false = person-created
date_fromNoTasks with date/deadline >= YYYY-MM-DD
said_doneNoFilter tasks pending human confirmation (true/false)
from_sourceNoFilter tasks whose `source` starts with this prefix

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, closed-world safety profile. The description adds real behavioral context beyond that: task filters suppress doc results, mode is auto-inferred, and a bare call returns the taxonomy rather than an empty result — non-obvious behaviors worth flagging. It omits pagination/result-shape behavior, though the limit/after params in schema cover that.

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, zero filler, with the scope constraint and the mode-inference behavior front-loaded. Every clause carries information not duplicated in structured fields.

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

Completeness3/5

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

For an 18-parameter tool with no output schema, the description covers mode inference and filter interactions well but says nothing about result shape, ordering, or the cost of broad queries. It is adequate to call the tool but leaves return-value expectations thin.

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. The description earns a bump by documenting cross-parameter interactions the schema cannot express: that task filters exclude docs entirely, and that mode is derived from which params are supplied (empty object yields taxonomy).

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 uses a concrete verb pair ("Search or list") with a broad resource ("open and archived items"), and the phrase "without reading full bodies" implicitly separates it from workspace_read. However, "items" is vague given the title mentions tasks, documents, and taxonomy; the description never names those resource types explicitly.

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?

It gives one useful routing rule — any task filter excludes docs — and explains that mode is inferred and empty {} returns full taxonomy. It does not state when to prefer workspace_read, workspace_catch_up, or workspace_guide, so the agent must infer the boundary from sibling names.

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