Skip to main content
Glama

ai_jq

Read-only

Natural language to jq filter — Turn a plain-English request into a jq filter (jq 1.7) plus a ready-to-run command and a short explanation. Give a sample of your JSON and the result is checked offline: bracket and quote balance, and which referenced fields do not exist in the sample (verdict OK / CHECK FIELDS / REVIEW). Params: task (required), sample (optional JSON, first 3000 chars used). Llama 3.3 70B on Workers AI. Price: $0.006 USDC (Base, via x402).

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": {
      "task": "<task>"
    },
    "name": "ai_jq"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesnames of users older than 30

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/non-destructive/open-world, but the description adds real behavioral detail: the validation checks performed (bracket/quote balance, missing fields), the three verdict labels, the 3000-char truncation of the sample, the backing model, and the paid x402/USDC pricing.

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?

Front-loaded with purpose, then validation behavior, then params, then model/price — a sensible ordering with little filler. The pricing and model sentences are justified for a metered tool but add 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?

With no output schema, the description carries the return-value burden and does so: filter, ready-to-run command, short explanation, and a validation verdict. Nothing an agent needs to invoke it correctly appears to be 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% for 'task', and the description still adds value by explaining the 'sample' input's purpose and its 3000-character truncation. It loses a point because 'sample' is described but absent from the declared input schema, which could confuse an agent about how to pass it.

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+resource pair ('Turn a plain-English request into a jq filter (jq 1.7)') and names the exact artifacts produced, which cleanly separates it from the surrounding ai_* text-generation siblings.

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 clear operational context: supply a task, optionally supply a JSON sample to get offline validation. It does not name an alternative or state when not to use it, 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.

Resources