Skip to main content
Glama

Search artifacts

search
Read-onlyIdempotent

Search readable artifacts. Scoped to a workspace (workspaceId, or an artifactId in one), ranking blends keywords with meaning and each result carries its best passages; pending counts chunks not yet searchable by meaning. Elsewhere, keyword ranking. Follow nextCursor as offset for remaining results; mode reports how the search ranked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoThe search text. Omit it to list by recency within the other filters.
teamNoOnly artifacts shared with this team (slug or id). Not with workspaceId.
typeNoOnly artifacts of this type.
limitNoResults per page, 1 to 200 (with artifactId, passages of that one artifact).
sinceNoOnly what happened since: an ISO 8601 timestamp, or a number of days back (7 = the last week).
offsetNoResults to skip: the next page starts here.
artifactIdNoSearch one artifact (its id or alias): its best passages, best first, up to limit. In a workspace, pass no scope or its own workspaceId.
workspaceIdNoSearch one workspace (not with team): ranks by keywords and meaning together, and returns each result's best passages. A workspace you cannot read is refused before the query is embedded.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
itemsYes
totalYes
partialYes
pendingNo
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real substance on top: ranking blends keywords with meaning, results carry best passages, `pending` counts chunks not yet semantically indexed, and results are paged via nextCursor. It stops short of stating anything about refusal conditions beyond the workspace-read note or about result limits, so not a 5.

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?

Roughly 55 words, front-loaded with the one-line purpose before the scoping and ranking clauses, and no sentence is padding. It is slightly telegraphic ("mode reports how the search ranked"), which costs a little readability but not much space.

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 an 8-parameter search tool with an output schema and full annotation coverage, the description covers scoping, ranking, pending-state, and pagination — the things an agent must know before calling. Return-field detail is legitimately delegated to the output schema; only edge behavior (result caps, empty/pending-only results) is unaddressed.

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 would be 3, but the description adds genuine semantics: workspaceId and artifactId are two scoping routes ("or an `artifactId` in one") and nextCursor must be treated as the offset for the next page. That explains parameter interaction and pagination intent beyond the field-level text.

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?

Opens with a specific verb and resource ("Search readable artifacts") and immediately characterizes the ranking model (keywords + meaning, best passages), which distinguishes it from plain listing tools. It never names a sibling (e.g. artifact_list or artifact_get_content) to sharpen the boundary, so it stops 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Scoped to a workspace... Elsewhere, keyword ranking" plus the artifactId-in-one mode implies when the different search modes apply, but the agent is left to infer them from behavioral prose rather than being told directly. There is no explicit when-not guidance and no alternative tool is named for enumerating or fetching a single document.

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.