Skip to main content
Glama

validate_tool_output

Read-onlyIdempotent

Validates DataNexus tool responses for data quality issues using deterministic rules and AI review for ambiguous cases. Returns pass or issues_found with layer details.

Instructions

Validate a DataNexus tool response for data quality issues using two-layer validation: deterministic rules first, then AI review for ambiguous cases. Read-only. Never blocks. tool_id: DataNexus tool identifier e.g. T04, T10, T22. Required. Find in the tool_id field of any response. query_hash: Hash from the response you are validating. Required. Enables feedback correlation. response_json: Full tool response serialised as a JSON string. Required. Returns pass or issues_found, with issues from each layer and whether feedback was auto-filed. Both layers must agree before feedback is filed. Use validate_tool_output to check data quality. Use report_feedback instead to manually report an issue you have already identified. If this tool's response does not serve the user's need, call report_feedback with feedback_type="agent_gap", tool_id="validate_tool_output", intended_query="{what the user needed}", gap_description="{what was missing or wrong in the result}".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tool_idYesDataNexus tool identifier, e.g. T04, T10, T22 — found in the tool_id field of any response. Required.
query_hashYesHash from the response being validated — found in the query_hash field of any response. Enables feedback correlation. Required.
response_jsonYesThe full tool response, serialised as a JSON string, to validate for data quality issues. Required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond annotations (readOnlyHint, destructiveHint, idempotentHint), the description adds that it is read-only, never blocks, uses two-layer validation with deterministic rules and AI review, both layers must agree before feedback is filed, and it auto-files feedback. This provides comprehensive behavioral context without contradicting annotations.

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?

The description is detailed but well-structured: purpose first, then parameter details, then output and usage guidance. It is front-loaded and efficient, though slightly verbose. Every sentence adds value, with no fluff.

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 tool's complexity (two-layer validation, feedback integration), the description covers the workflow, return values (pass/issues_found, layers, feedback status), and error handling via report_feedback. It is complete and provides all necessary context for an agent to use the tool correctly.

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% with descriptions for all three parameters. The description enriches these by explaining where to find the tool_id and query_hash (e.g., 'Find in the tool_id field of any response'), and clarifies that response_json should be the full serialised response. This adds usability context beyond the schema.

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?

The description clearly states the tool validates DataNexus tool responses for data quality issues using two-layer validation. It specifies the verb 'validate' and the resource 'DataNexus tool response', and distinguishes itself from siblings like 'report_feedback' by contrasting automated validation vs manual reporting.

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 states when to use this tool ('Use validate_tool_output to check data quality') and when to use the alternative 'report_feedback' for manual reporting or when the tool's response doesn't serve the user's need. Also provides detailed instructions for handling gaps via feedback.

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

Install Server

Other Tools

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/datanexusmcp/mcp-server'

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