Skip to main content
Glama

JSON Validation & Data Integrity | AEGI

prepare_json_validation

Read-only

Prepare an Apify validation for JSON records and missing required fields. Send records as a non-empty array of JSON objects and requiredFields as a non-empty array of field names. Example arguments: {"records":[{"id":"example-1"}],"requiredFields":["id"]}. Returns an Apify MCP call, direct API request and estimated cost for approval. Does not validate records, send them to Apify, or incur charges.

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": {
      "records": "<records>",
      "requiredFields": "<requiredFields>"
    },
    "name": "prepare_json_validation"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordsYesJSON objects to validate. Wrap a single object in an array.
requiredFieldsYesNames of fields that must be present in each record.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / records / description
      Added value: +"JSON objects to validate. Wrap a single object in an array."
    • addedInput schema / properties / records / examples
      Added value: +[
      +  [
      +    {
      +      "id": "example-1"
      +    }
      +  ]
      +]
    • addedInput schema / properties / requiredFields / description
      Added value: +"Names of fields that must be present in each record."
    • addedInput schema / properties / requiredFields / examples
      Added value: +[
      +  [
      +    "id"
      +  ]
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses what the tool actually returns (an Apify MCP call, a direct API request, and an estimated cost for approval) and that no charges occur. That is meaningful prep-tool behavior an agent cannot get from the annotations, though it does not detail the shape of the returned call.

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?

Three short sentences, front-loaded with purpose, then input format with a concrete example, then return value and safety limits. The inline example overlaps with schema examples but is cheap and helps a first-time caller; nothing is padded.

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 two-parameter preparation tool with no output schema, the description covers input format, return payload at a summary level, and the key side-effect guarantee (no send, no charge). Nothing an agent needs to call it safely is missing.

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

Parameters3/5

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

Schema description coverage is 100% and both parameters are already documented there, including the 'wrap a single object in an array' hint and minItems constraints. The description's example arguments largely restate the schema's own examples, so it adds little meaning beyond structured data; baseline 3 applies.

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 and resource ('Prepare an Apify validation for JSON records and missing required fields') and the surrounding sentences make the prep-only nature unmistakable. An agent can tell this apart from an execution tool like get_paid_execution because the description says it returns a call for approval and does not incur charges.

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 input contract ('Send records as a non-empty array... requiredFields as a non-empty array of field names') and gives explicit exclusions: it does not validate, does not send to Apify, and does not incur charges. It stops short of naming which sibling to invoke after approval, so it is clear context rather than full when/when-not routing.

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.