Skip to main content
Glama

Read AI gateway settings

ai_read
Read-onlyIdempotent

Read-only: the AI gateway for AI features inside the app. action "settings": which provider keys are set (last 4 characters only), the monthly caps and this month's spend by environment, and the page where the owner adds keys. To set or remove a key or change a cap use the ai tool.

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": {
      "action": "<action>",
      "project": "<project>"
    },
    "name": "ai_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
projectYesProject slug or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the description is not carrying the safety burden. It still adds real behavioral context beyond them: provider keys are surfaced only as the last four characters, spend is broken out by environment for the current month, and the response points at the owner's key-management page. It stops short of saying whether the caller must be an owner or what happens with no configured provider, which is why it is a 4 rather than a 5.

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?

Two sentences with no filler, and the read-only scope is front-loaded before the payload description. The telegraphic 'action "settings": ...' fragment is slightly clipped, but it is efficient rather than wasteful.

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?

For a two-parameter, single-action read with no output schema, the description covers everything an agent needs: operation type, returned fields, masking behavior, scoping by environment, and which sibling handles mutations. Nothing material is left to inference.

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

Parameters4/5

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

Schema coverage is only 50%, but the description compensates by spelling out the payload produced by action="settings", which the enum value alone does not convey. The project parameter is already documented in the schema as 'Project slug or id', so no additional explanation from the description is needed there.

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-and-resource pair (read the AI gateway settings) and enumerates exactly what the read returns: which provider keys are set (last 4 chars), monthly caps, this month's spend by environment, and the key-management page. It also names the sibling write tool (ai), so an agent can separate it from the mutation path 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Leads with 'Read-only' and closes with an explicit routing rule: to set or remove a key or change a cap, use the ai tool. That is both a when-to-use and a when-not-to-use statement with the named alternative.

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