Skip to main content
Glama

signals_best_path

Highest-probability causal path from source to target. Uses Dijkstra where each edge cost is -log(weight), so the path maximizes the product of edge weights. Returns the single best chain with per-edge weights and cumulative probability. Contrast with signals_multihop which returns ALL paths up to a depth cap.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "signals_best_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
respect_signNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the algorithm (Dijkstra with -log(weight) edge costs), the optimization goal (maximizing the product of edge weights), and the return shape (single chain with per-edge weights and cumulative probability). It omits permissions, performance characteristics, and any treatment of zero or negative weights.

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?

Three sentences, front-loaded with the core purpose, then mechanism, then the sibling contrast. No filler and every clause adds information.

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?

Return values are well covered despite the absence of an output schema, and the algorithmic behavior is explained. However, with no annotations and 0% schema coverage, leaving 'respect_sign' entirely undefined means the definition is not fully sufficient for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% for three parameters. The description implies source and target semantics for 'from' and 'to', but says nothing at all about 'respect_sign', which is the one parameter an agent could not infer. This is a real gap the description should have closed.

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 resource and operation: the highest-probability causal path from a source to a target, and explicitly contrasts it with signals_multihop. An agent can distinguish the two without opening either 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?

Names the sibling signals_multihop and the condition that selects it (all paths up to a depth cap) versus this tool's single best chain. It does not state prerequisites or when the tool would be the wrong choice, so it falls short of full when/when-not guidance.

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.