Skip to main content
Glama

search_workspace

Search existing workspace media by prompt, file name, description, and tags. This searches metadata, not image pixels. Use a concise subject keyword such as "cat". Follow nextCursor until hasMore is false when the user asks for all matches. Never create an edit while searching.

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": {
      "workspaceId": "<workspaceId>",
      "query": "<query>"
    },
    "name": "search_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOptional media type
limitNo
queryYesSubject or metadata terms to match
cursorNonextCursor from the previous search page
workspaceIdYesWorkspace to search

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it declares metadata-only matching, discloses the pagination contract (nextCursor until hasMore is false), and signals a read-only stance ("Never create an edit while searching"). It omits permission/workspace-access requirements and any result-shape details beyond the cursor loop.

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 purpose and scope before the operational rules. Every sentence carries a distinct instruction; the pagination and no-edit guardrails are terse rather than padded.

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?

Five parameters, a required workspace+query pair, and no output schema — so the description usefully supplies the return-shape hint (nextCursor/hasMore) that the schema would otherwise lack. Missing only access prerequisites and defaults for limit/type, which the schema partially covers.

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 coverage is 80%, so the baseline is 3. The description adds meaning to `query` ("concise subject keyword") and clarifies `cursor` behavior as a page-by-page loop, but says nothing about `limit`, `type`, or `workspaceId` beyond what the schema already documents.

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 ("Search existing workspace media") plus the indexed fields (prompt, file name, description, tags), and immediately bounds the scope with "This searches metadata, not image pixels." That scope line lets an agent distinguish it from content/visual search without opening the 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 concrete usage rules: use a concise subject keyword like "cat", paginate via nextCursor until hasMore is false when the user wants all matches, and do not create an edit while searching. It does not name an alternative tool for pixel/visual search, so the when-to-use-this-vs-sibling routing is inferred rather than explicit.

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.