Skip to main content
Glama

validate_etims_payload

Validates eTIMS JSON payloads, KRA PINs, branch IDs, and tax math to confirm balanced totals before KRA submission.

Instructions

Validates eTIMS JSON payloads, KRA PINs, branch IDs, and ensures tax math (taxblAmtA-E, taxAmtA-E, totAmt) perfectly balances before submitting to KRA.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payload_jsonYesJSON string representing the request body or raw string value to validate
payload_typeYesType of payload or entity to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the validation scope in useful detail (payloads, PINs, branch IDs, tax math), but does not explain what happens on failure, what the response contains, or whether the check has any side effects. Validation is implicitly safe, but that is not made explicit.

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 a single tightly packed sentence with no filler. The core purpose and the pre-submission timing are front-loaded, so an agent gets the essential context immediately.

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

Completeness2/5

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

There is no output schema and no annotations, so the description should clarify what a validation call returns, such as a pass/fail result or detailed field errors. It explains what is checked but not the outcome format, leaving an important gap for a tool whose main value is the validation result.

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 coverage is 100%, so both parameters are already documented in the input schema. The description adds domain context by naming the kinds of things validated, but it does not map them to payload_json or payload_type or explain the enum values beyond what the schema provides.

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 (validates) and concrete resources (eTIMS JSON payloads, KRA PINs, branch IDs, and tax fields). It is clearly distinct from siblings such as generate_sample_payload or explain_error_code, though it does not explicitly name or contrast against them.

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?

The phrase 'before submitting to KRA' gives a clear moment to use the tool. It does not state when not to use it or name alternatives, but the context is sufficient for an agent to infer the right stage of a submission workflow.

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