Skip to main content
Glama

Run a read-only action

read_action
Read-only

Run one READ-ONLY action returned by list_actions — one it marks read_only: true (a scrape, an SEO lookup, an account read). Same inputs and envelope as execute_action, but it is refused for anything that writes, so several can run at once: send independent reads together in one turn. An action that is not read-only answers not_read_only, and an environment where this tool is not enabled answers read_action_disabled: in both cases run it with execute_action instead.

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

Input Schema

NameRequiredDescriptionDefault
actionYes
paramsNo
displayNo
account_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description goes well beyond them: it explains the refusal behavior for writes, names the two failure payloads (`not_read_only`, `read_action_disabled`), and states the safe concurrency model. That is exactly the extra context an agent cannot get from the annotation flags.

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 core constraint is front-loaded in the first clause, followed by the fallback behavior. It is dense but nearly every sentence carries operational meaning; the parenthetical examples and the error-code names could be tightened without loss.

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?

For a four-parameter tool with no output schema, the description covers the calling contract thoroughly — which action to pass, concurrency, and both recovery paths. The remaining gap is that the non-`action` parameters stay opaque, leaving an agent to guess the shape of `params` and `display`.

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% across four parameters, so the description must carry the burden and it does not. It clarifies where the `action` value comes from, but `params`, `display`, and `account_id` are never explained; 'same inputs and envelope as execute_action' is only a pointer to a different schema, not an explanation of these fields.

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?

The first clause states a specific verb and resource ('Run one READ-ONLY action') and immediately scopes it to items returned by `list_actions` with `read_only: true`, with concrete examples (scrape, SEO lookup, account read). It is unambiguously distinguished from `execute_action` rather than blurring into it.

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?

Explicit routing rules are given in both directions: use this tool for actions marked read-only, and fall back to `execute_action` when the action is not read-only or when this tool is disabled in the environment. It also gives positive guidance to batch independent reads in one turn, which is decision-relevant, not filler.

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