Skip to main content
Glama

Phlece

Route a request

phlece_route_request

Picks the best-fit provider for a need (tag, search, a listing id, or max price) within the wallet's policy, reads its live x402 offer, and returns the EIP-3009 USDC authorization for the wallet to sign (EIP-712 typed data). Then call phlece_x402_header with the signature to get the payment header. Signing sends nothing; Phlece never holds the money.

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": {
      "wallet": "<wallet>"
    },
    "name": "phlece_route_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
searchNo
walletYesThe agent wallet that pays (0x address).
listingNoRoute to this listing only.
maxPriceUsdcNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare non-read-only, open-world, non-idempotent, non-destructive; the description adds real context beyond that — the tool returns unsigned EIP-712 typed data, signing sends nothing, and Phlece never holds funds. It does not disclose what happens to the wallet's policy state or whether repeated calls produce different quotes, which matters given idempotentHint=false.

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?

Three sentences, front-loaded with the action and ending with the call sequence and the safety clarification. Dense but every sentence carries information; the heavy acronym load (x402, EIP-3009, EIP-712) is the only friction.

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, and the description fully characterizes the return value (EIP-3009 USDC authorization as EIP-712 typed data) plus the required follow-up call. For a 5-parameter routing tool with modest schema coverage, this is sufficient for an agent to call it and use the result correctly.

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 only 40%, so the description must compensate; it names all four optional selectors (tag, search, listing id, max price), which helps. However, it never explains the format of maxPriceUsdc (string — units, decimals, or micro-USDC), whether the selectors are mutually exclusive or ranked, or what 'wallet' must be beyond the schema's own note.

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 concrete verb chain and resource: picks the best-fit provider for a need, reads its live x402 offer, and returns an EIP-3009 USDC authorization as EIP-712 typed data. This clearly separates it from the follow-up sibling phlece_x402_header. It does not explicitly contrast with phlece_compare_providers or phlece_list_providers, so sibling differentiation is only partial.

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?

Gives the trigger conditions (a need expressed as tag, search, listing id, or max price) and the exact next step: call phlece_x402_header with the signature. No when-not guidance is given, and it doesn't say what to do when no provider matches or when the wallet's policy rejects the route.

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