Skip to main content
Glama

artifact.search

Read-only

Search large artifacts as a stream to find text or regex matches without loading the full body into memory.

Instructions

Streamed search inside an artifact, so a multi-hundred-megabyte body is searchable without ever being fully loaded.

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": {
      "artifact_id": "<artifact_id>",
      "query": "<query>"
    },
    "name": "artifact.search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
is_regexNo
artifact_idYes
ignore_caseNo
max_matchesNo
context_linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is supplied structurally. The description adds meaningful behavior beyond that: search is streamed and avoids fully loading the artifact body, which matters for memory-sensitive or huge artifacts. It still does not disclose matching behavior, result shape, limits, or how regex/case options affect execution.

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?

The description is a single front-loaded sentence with no redundant wording. Its rationale about avoiding full body loading earns its place by explaining why streaming search exists. There is no structural clutter or repetition.

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

Completeness2/5

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

The tool has six parameters at 0% schema description coverage and no output schema. The description explains the streaming rationale but omits parameter semantics, matching controls, and result behavior, leaving too much for the agent to infer. For this complexity level, a single sentence is not enough.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the six parameters are undocumented in the schema and must be explained by the description. The description only implicitly suggests an artifact identifier and a search query, and says nothing about is_regex, ignore_case, max_matches, or context_lines. With most parameters left opaque, it does not compensate for the schema gap.

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 states a specific verb and resource: a streamed search inside an artifact. It also clarifies the key scope distinction that the artifact body is not fully loaded, which helps distinguish it from a plain in-memory search. It does not explicitly differentiate itself from siblings such as doc.search or js.search_source, so it falls 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?

The description implies the tool is intended for very large artifact bodies through the 'multi-hundred-megabyte' phrasing. However, it gives no explicit when-to-use guidance, no when-not-to-use guidance, and does not name or compare against alternative search tools. Usage must be inferred from the streaming rationale.

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

Deploy Server

Other Tools