Skip to main content
Glama
Bristlecone2026

Bristlecone Logic Utilities

validate_schema

Read-onlyIdempotent

Validates a target JSON payload against a reference schema dictionary, ensuring all mandatory keys are present. Returns a boolean status and list of missing keys for pre-processing verification.

Instructions

Deterministically validates that a target JSON payload contains all mandatory keys specified in a reference schema dictionary. Returns a boolean validation status and a list of missing keys. Use when verifying payload structure before downstream processing. Do not use for regex string validation or deep recursive type casting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe target JSON data object to inspect and validate against the schema definition.
schema_definitionYesA JSON object defining mandatory keys required in the target payload (e.g. {'user_id': '', 'status': ''}).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYes
missing_keysYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare read-only and idempotent behavior. The description additionally reveals determinism, return shape (boolean + list of missing keys), and the scope of validation (key presence only), exceeding the baseline set by annotations.

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 tight and well-organized: first sentence states the core action and output, second provides usage context, third gives exclusion guidance. No filler or redundant wording.

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?

Given the output schema is present and the description already covers return values, usage boundaries, and parameter roles, all necessary context for invoking this tool correctly is provided. Complete and self-sufficient.

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

Parameters5/5

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

Input schema descriptions cover both parameters with clear roles: 'target JSON data object to inspect' and 'JSON object defining mandatory keys'. Schema coverage is 100% and the descriptions are precise and unambiguous.

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?

Clearly states the verb 'validates' and specific resource 'target JSON payload' against a 'reference schema dictionary'. It also distinguishes from siblings by specifying when to use (payload structure verification) and when not to use (regex or deep type casting).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly provides both when to use ('when verifying payload structure before downstream processing') and when not to use ('Do not use for regex string validation or deep recursive type casting'), offering clear functional boundaries.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bristlecone2026/bristlecone-logic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server