Skip to main content
Glama

x402-xml-path

XML Path: Extract text content of a specified tag from XML. Provide xml and tag; returns the tag's text value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoTag to process
xmlNoXml to process
dataNoData to process
pathNoPath to process
textNoText to process
inputNoInput to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/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 usefully states the return value ('returns the tag's text value'), which is helpful, but it does not explain edge cases such as missing tags, multiple matches, nested tags, namespaces, or whether extraction is strict or best-effort.

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?

Two sentences, front-loaded with the purpose and followed by the essential input/output contract. There is no wasted language.

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

Completeness4/5

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

For a simple read-only extraction tool with no output schema, the description covers purpose, required inputs, and return value adequately. Minor gaps remain around error behavior and XML path semantics implied by the tool name, but the core is complete.

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?

Although the schema has 100% description coverage, those descriptions are generic placeholders like 'Tag to process' and 'Xml to process'. The description compensates by explicitly naming the two meaningful inputs, xml and tag, helping the agent ignore the confusing extra parameters (data, path, text, input).

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 gives a specific verb and resource: extract the text content of a specified tag from XML. It is clear what the tool does, though it does not explicitly distinguish itself from sibling XML tools such as x402-xml-json, x402-xml-convert, or x402-xml-pretty.

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

Usage Guidelines2/5

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

The description says to provide xml and tag, but this is parameter-level instruction rather than usage guidance. It does not state when to use this tool versus related XML alternatives, nor does it mention exclusions or prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources