Skip to main content
Glama

Get a decision gateway's answers

gateway_decisions
Read-onlyIdempotent

Get a decision gateway's answers

How a decision gateway answered over the last 24 hours or 7 days: for each question of its config, how many requests answered it and, for a choice or a yes/no question, each answer's count, most frequent first (at most 12, the rest as other); for a score, the mean and the share at or above 0.5. requests counts the decisions calls through the gateway in the range. A chat gateway answers 400 invalid_request.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe gateway's name.
rangeNoThe last 24 hours (per hour) or the last 7 days (per day).24h

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, so the description correctly spends its words elsewhere. It adds real behavioral detail beyond annotations: the 24h/7d window semantics, the truncation rule ('at most 12, the rest as other'), what 'requests' counts, and the concrete failure mode for chat gateways (400 invalid_request). Only the exact error payload shape and handling of empty ranges are left unstated.

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?

The purpose and time window are front-loaded and the whole definition is a single dense paragraph with no filler. The opening clause duplicates the title verbatim and the semicolon-chained enumeration of answer types is somewhat hard to parse, but no sentence is disposable.

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 compensates by describing the return shape: per-question request counts, ranked answer counts capped at 12 with an 'other' bucket, and mean plus share at or above 0.5 for scores. Combined with annotations covering safety and the fully documented two-parameter schema, an agent has everything needed to call and interpret this tool.

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 description coverage is 100%, and the schema itself explains both parameters, including the enum values and the per-hour vs per-day granularity. The description restates the 24h/7d window but adds no format, constraint, or edge-case detail beyond the schema, so the baseline of 3 applies.

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?

The description states a specific verb and resource ('Get a decision gateway's answers') and immediately defines what an 'answer' is: per-question request counts, per-choice counts, and score mean/share. This makes the tool's output conceptually distinct from a generic stats call. It stops short of naming how it differs from siblings like gateway_stats or get_gateway.

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 by the stated scope ('over the last 24 hours or 7 days') and by the note that a chat gateway errors out, which tells an agent when not to call it. However, there is no explicit statement of when to choose this over gateway_stats or get_gateway, so the agent must infer the boundary from output shape alone.

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