Skip to main content
Glama

Search artifacts

search
Read-onlyIdempotent

Search readable artifacts: the title, and the current version's headings (a leading heading only with text of its own) and body of markdown, HTML, code and text (not alias, description or metadata), matched by stemmed English words, not characters. Scoped to a workspace (workspaceId, or an artifactId in one), each result carries its best passages, and ranking blends keywords with meaning where the server has an embedding provider; pending counts chunks not yet searchable by meaning (absent with match: 'words', which already reads them). Elsewhere, keyword ranking. match: 'words' (with q) returns only results whose text holds the query's words (an identifier, say), none when none does; each result's matchedBy says whether its text holds the words or it was found by meaning alone. rank is a relative order (the first is 1 when keywords and meaning are blended). Follow nextCursor as offset for remaining results; mode reports how the search ranked.

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

Input Schema

NameRequiredDescriptionDefault
qNoThe search text. Omit it to list by recency within the other filters.
whyNoOptional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters.
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).
matchNowords: only results whose text contains the query's words, nothing when none does; any: words and meaning together where the server ranks by meaning.any
sinceNoOnly what happened since: an ISO 8601 timestamp, or a time back: a number of days (7 = the last week, 0.5 = the last 12 hours) or 30m, 12h, 3d, 2w.
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, by its id or its slug (not with team): ranks by keywords, and by meaning too where the server has an embedding provider, and returns each result's best passages. A workspace you cannot read is refused before the query is embedded.

Output Schema

NameRequiredDescriptionDefault
modeYes
itemsYes
totalYes
partialYes
pendingNoWorkspace scope only, absent with match: 'words': chunks not yet searchable by meaning. Keywords already find them.
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / since / description
      Previous value: -"Only what happened since: an ISO 8601 timestamp, or a time back: a number of days (7 = the last week, 0.5 = the last 12 hours) or 12h, 3d, 2w."New value: +"Only what happened since: an ISO 8601 timestamp, or a time back: a number of days (7 = the last week, 0.5 = the last 12 hours) or 30m, 12h, 3d, 2w."
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded by this operation. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. Changed1 schema field changed
    • addedInput schema / properties / why
      Added value: +{
      +  "description": "Optional, accepted and not recorded by this operation. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters.",
      +  "type": "string"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / match
      Added value: +{
      +  "default": "any",
      +  "description": "words: only results whose text contains the query's words, nothing when none does; any: words and meaning together where the server ranks by meaning.",
      +  "enum": [
      +    "any",
      +    "words"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / matchedBy
      Added value: +{
      +  "description": "words: the artifact's text contains the query's words; meaning: found by meaning alone, the words absent.",
      +  "enum": [
      +    "words",
      +    "meaning"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / pending / description
      Added value: +"Workspace scope only, absent with match: 'words': chunks not yet searchable by meaning. Keywords already find them."
  4. Changed1 schema field changed
    • changedInput schema / properties / since / description
      Previous value: -"Only what happened since: an ISO 8601 timestamp, or a number of days back (7 = the last week)."New value: +"Only what happened since: an ISO 8601 timestamp, or a time back: a number of days (7 = the last week, 0.5 = the last 12 hours) or 12h, 3d, 2w."
  5. Changed1 schema field changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Search one workspace, by its id or its slug (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."New value: +"Search one workspace, by its id or its slug (not with team): ranks by keywords, and by meaning too where the server has an embedding provider, and returns each result's best passages. A workspace you cannot read is refused before the query is embedded."
  6. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Search 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."New value: +"Search one workspace, by its id or its slug (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."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  7. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, yet the description adds substantial extra behavior: keyword-vs-meaning blending depends on an embedding provider, `pending` counts unembedded chunks and disappears under match:'words', `rank` is relative, `matchedBy` disambiguates why a hit appeared, and unreadable workspaces are refused before embedding. That is real context beyond the structured safety hints.

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

Conciseness3/5

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

Purpose is front-loaded, but the body is a single dense block of semicolon-linked clauses and nested parentheses (e.g. the parenthetical about leading headings, the aside about match:'words' already reading pending chunks) that is hard to scan. Every fact is relevant, yet the packaging could be split into shorter sentences or bullets for the same length.

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

Completeness5/5

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

For a 10-parameter tool with no required params, an output schema, and a mode-dependent ranking engine, the description covers scope, matching, ranking, pagination, and permission refusal. Nothing an agent needs to call this correctly is missing.

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, but the description adds interaction semantics the schema only partly captures: match:'words' is meaningful only with q, limit means passage count when artifactId is supplied, and pagination continues via nextCursor as offset. Some of this (match:'any' vs 'words') merely restates the schema enum description, keeping it below 5.

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?

Names a specific verb and resource and pins the searchable surface precisely: title, current version's headings (only leading headings with their own text) and body of markdown, HTML, code and text, explicitly excluding alias, description and metadata. It also states the matching model (stemmed English words, not characters) and the scoping modes, so an agent can tell this apart from artifact_get/artifact_read/artifact_list without opening another 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?

Explains the key mode switches: omit q to list by recency, pass artifactId to search one artifact's passages, pass workspaceId for a workspace, use match:'words' for literal word containment. It does not explicitly name a sibling alternative (e.g. artifact_get for a known id) or state when not to use this tool, so it stops short of a 5.

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.