Skip to main content
Glama
mcp-efile-mock

mcp-efile-mock

by b33-steve

Build return XML

build_return_xml
Read-onlyIdempotent

Validates mock employment-tax or extension return data and converts it to illustrative MeF-style XML for offline e-file workflow testing; invalid input returns validation results without XML.

Instructions

Validate the return and convert it to illustrative MeF-style XML. The XML uses hand-modeled element names in a mock namespace and will not pass the real IRS schema. xsd.status is 'valid' or 'invalid' only if IRS XSDs are installed locally; 'not_available' means the XML was NOT schema-validated. Returns xml: null with the validation result if the input is invalid. Read-only.

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": {
      "formType": "<formType>",
      "data": "<data>"
    },
    "name": "build_return_xml"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesReturn data as a JSON object using the field names shown by list_supported_forms. Unknown fields are rejected. Use fake values only: EINs start with 00 (e.g. 00-0000000), SSNs look like 000-00-0000.
formTypeYesForm to process: 941, 944, 4868, 7004, 941-X. Call list_supported_forms first to see each form's fields. 940, 945, 1120-S and 8868 are not available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the namespace is a mock and the XML will not pass the real IRS schema, plus the critical caveat that xsd.status='not_available' means NOT schema-validated. It also states the failure shape (xml: null alongside the validation result), which prevents an agent from misreading a missing payload as an error.

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?

Front-loaded with the core action, then layered caveats in a sensible order: mock status, XSD availability semantics, invalid-input return shape. The trailing 'Read-only.' merely repeats readOnlyHint=true from the annotations, the one sentence that does not earn its place.

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?

There is no output schema, yet the description explains the return surface (xml plus xsd.status) and its three-state semantics well enough to interpret any response. For a two-parameter, deeply-annotated tool, nothing an agent needs in order to call or interpret it 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 coverage is 100%, with data and formType both fully described, including the enum limitations ('940, 945, 1120-S and 8868 are not available') and the fake-value conventions. The description adds no parameter meaning beyond that, so baseline 3 applies.

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?

States a specific compound action — validate the return and convert it to MeF-style XML — so the agent knows exactly what comes back. It distinguishes itself partly from validate_return by naming the XML conversion, but never explicitly contrasts the two siblings, leaving the agent to infer the split.

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?

Usage is only implied: it is a build/render step whose output is a mock XML artifact, so an agent can guess it is for inspection rather than filing. There is no explicit 'use this instead of validate_return/mock_submit_return when...' guidance, and the 'call list_supported_forms first' hint lives in the schema rather than the description.

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