Skip to main content
Glama

x402-dfs

Dfs: Perform depth-first search traversal on an undirected graph. Provide edges (list of [a,b] pairs) and optional start node; returns traversal order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgesNoEdges to process
startNoStart to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / edges
      Added value: +{
      +  "description": "Edges to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / start
      Added value: +{
      +  "description": "Start to process",
      +  "type": "string"
      +}
  2. First observed

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 burden. It usefully discloses that the graph is undirected and that the output is a traversal order, but says nothing about determinism/neighbor ordering or how disconnected graphs are handled, which matters for DFS output.

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?

Compact and front-loaded, with the algorithm and graph type stated first, then inputs, then return. The only minor waste is the leading 'Dfs:' label that merely restates the tool name.

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?

No output schema exists, and the description does state the return value ('traversal order'), plus the shape of the required inputs. It is adequate for a pure graph-traversal utility, though it omits edge-case behavior for disconnected or cyclic graphs.

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 nominally 100%, but the schema strings are tautological ('Edges to process', 'Start to process'). The description adds real meaning: edges are a list of [a,b] pairs and start is an optional node, clarifying both format and optionality beyond the schema.

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 verb and resource: 'Perform depth-first search traversal on an undirected graph,' and adds the input format and return value. The algorithm name inherently separates it from the bfs sibling, but the description never explicitly names or contrasts with an alternative, so it falls short of full sibling differentiation.

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?

The description tells the agent what inputs to supply ('Provide edges ... and optional start node'), which implies usage, but gives no guidance on when to reach for DFS versus the sibling bfs, nor any exclusions such as graph size or connectivity assumptions.

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