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. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
edgesNo
startNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / edges / description
      Removed value: -"Edges to process"
    • removedInput schema / properties / start / description
      Removed value: -"Start to process"
  2. 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"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return value (traversal order) and the graph kind (undirected), which is useful. It omits tie-breaking order for adjacent vertices, handling of disconnected components, and determinism guarantees — meaningful gaps for a traversal tool.

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?

Two compact sentences that front-load the operation, inputs, and output. The appended free-trial/pricing line is boilerplate but brief and does not obscure the core description.

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

Completeness3/5

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

For a two-parameter pure-computation tool with no output schema and no annotations, the description covers purpose, inputs, and a rough return value. It is not complete enough on encoding of edges, ordering semantics, and disconnected-graph behavior for an agent to call it confidently without trial and error.

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?

With schema coverage at 0%, the description is the only source of parameter meaning, and it does name both parameters: edges as [a,b] pairs and an optional start node. However, the schema types both as strings while the description describes a list of pairs, and it never explains the encoding (e.g. JSON array string), leaving a real ambiguity about how to pass edges.

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: depth-first search traversal on an undirected graph, plus the returned artifact (traversal order). It fails to name the obvious sibling x402-bfs, so the agent must infer the DFS-vs-BFS distinction from the name alone.

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?

It gives the required input shape (edges) and notes that start is optional, which implies when the tool applies. There is no explicit statement of when to pick this over x402-bfs, x402-connected-components, or x402-adjacency-matrix, and no note on disconnected graphs or missing start behavior.

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