Skip to main content
Glama
devkit-mcp

devkit-mcp

by RaihNoDev2

json_validate

Read-onlyIdempotent

Validates whether a text string is well-formed JSON, helping AI agents verify input before parsing or processing.

Instructions

Verifica se uma string é um JSON válido.

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": {
      "text": "<text>"
    },
    "name": "json_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesString JSON.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds nothing beyond that: it does not say what the tool returns (a boolean, or an error message with position), nor how malformed input is handled, which is the main behavioral unknown for a validator.

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?

It is a single short sentence with no filler and the core action is front-loaded. It is efficient, though its brevity is also the source of the missing return-value and alternative-tool information.

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

Completeness3/5

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

For a one-parameter, side-effect-free utility, the definition is minimally sufficient to invoke correctly. However, with no output schema, the description should have disclosed what a successful versus invalid result looks like, which is the one thing an agent still needs to know.

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?

There is a single required parameter with 100% schema description coverage, so the schema already documents it and the baseline of 3 applies. The description adds no meaning beyond 'a JSON string' — for example, whether input is a string containing JSON or an already-parsed value.

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: it verifies whether a string is valid JSON. That is unambiguous about what the tool does, but it never distinguishes itself from the sibling json_format, which an agent could easily confuse with a validation tool.

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 purpose implies when to use it (you have a string and need a validity check), but there is no explicit when-to-use or when-not-to-use guidance. In particular, nothing says to use json_format instead when the goal is to pretty-print or normalize rather than validate.

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