Skip to main content
Glama
regaing

devbelt-mcp

by regaing

xpath_tool

Extract data from HTML using simple XPath expressions like //div, //a[@href], or //title/text(). Count matches or return extracted text.

Instructions

简易 XPath 提取:支持 //tag、tag、tag[@attr="value"]、/text() 形式(基于正则的轻量实现,不支持复杂轴表达式)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYes
xpathYes如 //div、//a[@href] 或 //title/text()
actionNoextract
Behavior3/5

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

With no annotations, the description carries the burden. It discloses the regex-based and lightweight nature, plus the limitation on complex axes, which is useful. However, it does not mention error behavior, return format, or whether the tool modifies input.

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 sentence, front-loaded with the core purpose, and every clause adds information about supported patterns or limitations. No redundancy or filler.

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 3-parameter tool with no annotations or output schema, the description covers the main extraction functionality and constraints. However, it omits the behavior of the 'count' action and return value format, which are important for a complete invocation picture.

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 description coverage is only 33%, with only the xpath parameter having examples. The description adds supported XPath forms for xpath, but says nothing about html or the action parameter (extract vs count), leaving those semantics incomplete.

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 it performs XPath extraction and enumerates supported patterns like //tag, tag, tag[@attr="value"], /text(). This specific verb+resource distinguishes it from sibling text/regex tools.

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?

It notes this is a regex-based lightweight implementation and explicitly says it does not support complex axis expressions, giving a clear boundary for when to use it. It does not name specific alternatives but the limitation serves as implicit guidance.

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/regaing/devbelt-mcp'

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