Skip to main content
Glama

artifact.json_query

Read-only

Query a stored JSON artifact with JSONPath expressions to extract or filter specific values, avoiding manual scanning of large responses.

Instructions

JSONPath query against a JSON artifact: $.data.users[?(@.status == 'disabled')], $.a[1:5], $..name. Beats scanning a huge response by hand.

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>",
      "path": "<path>"
    },
    "name": "artifact.json_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
limitNo
artifact_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered structurally. The description adds nothing beyond that: it does not say what an invalid path does, whether results are truncated, or how the open-world flag relates to a locally stored artifact. With annotations carrying the safety burden, this is adequate but thin.

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?

Two compact clauses, operation stated first, examples inline, and the value proposition last. No wasted words or boilerplate — everything present earns its place.

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 a 3-parameter read-only query with no output schema, the description supplies enough to form a correct call on the key parameter. The residual gaps are minor but real: `limit` semantics and the expected result shape are undocumented.

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 0%, so the description must compensate, and it does for the critical `path` parameter with three illustrative JSONPath forms including a filter, a slice, and a recursive descent. It leaves `artifact_id` and especially `limit` (which likely caps returned matches) entirely unexplained, so the compensation is partial rather than complete.

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?

States a specific verb and resource ('JSONPath query against a JSON artifact') and backs it with three concrete path examples, so an agent immediately knows the operation and dialect. It stops short of naming how it differs from siblings such as artifact.read or artifact.search, which the 'beats scanning a huge response by hand' clause only hints at.

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 phrase 'Beats scanning a huge response by hand' implicitly tells the agent to prefer this over reading a large artifact wholesale, which is genuine usage guidance. However, there is no explicit when-to-use statement, no exclusion (e.g., when to use artifact.search instead), and no prerequisite about how artifact_id is obtained.

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