Skip to main content
Glama
gama-fastpath

gama-fastpath

by gamai-io

fastpath_route

Screens requests and shell/SQL commands before any LLM call, returning a route, allow/deny decision, denial reason, and exact answers for math and cache hits in under 10 ms with no tokens spent.

Instructions

Route one request/command through the deterministic 0-LLM gate: returns route block|math|math_pdv|cache|time|llm, the decision (deny|answer|pass), the denial code and reason when blocked, and the computed answer when the gate can answer without a model. Under 10 ms, no token spent.

Input Schema

NameRequiredDescriptionDefault
sidNotenant/session id used to scope the cache
commandNoalias for request (a concrete command to check)
requestNothe user request or shell/SQL command to route

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return shape (route, decision, denial code/reason, computed answer), latency (<10 ms), and cost (no tokens spent). It stops short of stating whether the call has side effects or what happens on malformed input, which is the main remaining gap for a tool with zero annotation coverage.

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?

Two tight sentences with the operation and mechanism front-loaded, followed by the return contract and then the performance/cost guarantees. Every clause adds information; nothing is redundant with the name or title.

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?

Because there is no output schema and no annotations, the description has to explain returns and behavior, and it does so thoroughly, including the enumerated route and decision values. It is slightly short on error/failure semantics and sid usage, but is otherwise sufficient to invoke the tool 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 100%, so baseline is 3. The description adds the cardinality constraint ('one' request/command) and the request/command aliasing, but the alias is already documented in the schema and sid's cache-scoping role is not mentioned at all in the description.

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?

Uses a specific verb ('Route') with an explicit resource ('one request/command') and names the mechanism ('deterministic 0-LLM gate'), then enumerates the exact route categories and decision outcomes. An agent can tell this is the pre-LLM classification/answer gate, distinct from the health and rules siblings, without opening any schema.

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?

Usage is implied rather than stated: '0-LLM gate' and 'no token spent' signal this should be called before dispatching to a model, and 'one request/command' implies single-item calls. But there is no explicit when-to-use, when-not-to-use, or pointer to the fastpath_health/fastpath_rules alternatives, so the agent must infer the call ordering.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools