Skip to main content
Glama

Route a task to the right SignalLayer tool

signal_layer_router
Read-onlyIdempotent

Free deterministic task-to-tool router, not a full catalog. Returns match, recommendedTool, routingConfidence, reason, missingRequiredInputs and readyToCall HTTP/MCP arguments for the best eligible primitive, or an explicit no_match when nothing fits. It may recommend a paid tool but never authorizes payment; check the live x402 challenge and obtain user approval before spending.

Input Schema

NameRequiredDescriptionDefault
taskYes
amountNo
fieldsNo
targetNo
networkNo
buyTokenNo
sellTokenNo
maxPriceUsdNo
buyTokenDecimalsNo
sellTokenDecimalsNo

Output Schema

NameRequiredDescriptionDefault
matchNo
reasonNo
readyToCallNo
recommendedToolNo
routingConfidenceNo
missingRequiredInputsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "match": {
      +      "type": "boolean"
      +    },
      +    "missingRequiredInputs": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "readyToCall": {},
      +    "reason": {
      +      "type": "string"
      +    },
      +    "recommendedTool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "routingConfidence": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds the important operational trait that a paid recommendation is never an authorization, plus the requirement to check the live x402 challenge and get user approval. Listing the response fields is partly redundant given an output schema exists, but the payment-authorization disclosure is genuinely beyond structured data.

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 front-loaded sentences with no filler; the core identity leads, followed by outputs and the payment caveat. Enumerating the return fields is slightly redundant with the output schema, but it costs little.

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?

The output schema means return values need not be explained, and annotations carry the safety profile, so the behavioral story is adequate. However, for a 10-parameter tool with no schema descriptions, the total absence of parameter guidance leaves a real gap in how to actually invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters, so the description carries the full burden — and it explains none of them. task, amount, fields, target, network, buyToken/sellToken, maxPriceUsd and the decimals are all undefined in both schema and description, leaving the agent unable to know how to populate them.

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?

States a specific verb+resource ('task-to-tool router') and immediately scopes it ('Free deterministic', 'not a full catalog'), which cleanly separates it from the sibling signal_layer_catalog. An agent can identify the tool's role without opening the schema.

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?

The 'not a full catalog' framing implies catalog browsing is a different tool, and the description gives concrete operating conditions: it returns an explicit no_match when nothing fits, and may recommend a paid tool without authorizing payment. It stops short of naming signal_layer_catalog as the alternative explicitly, so it is clear context rather than full when/when-not routing.

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