Skip to main content
Glama

Runledge

Evaluate action invariants

evaluate_action
Read-onlyIdempotent

Evaluate a proposed action against current workspace rules. Returns Allowed / Adjusted / Held / Blocked (compatibility values allowed / shaped / pending_approval / blocked). Adjusted returns shaped_action; callers send that version, never the original. No external action is executed.

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": {
      "workspace_id": "<workspace_id>",
      "action": "<action>"
    },
    "name": "evaluate_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
approval_idNo
workspace_idYes
payload_sha256No
connection_check_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered; the description adds real value beyond that by enumerating the four outcome states, giving the legacy compatibility aliases, and explaining that Adjusted carries a shaped_action the caller must resubmit. It does not mention auth, rate limits, or what an approval_id prerequisite means in practice, which keeps it short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with purpose and then the outcome taxonomy, with zero filler. Every clause — the compatibility values, the shaped_action instruction, the non-execution guarantee — carries distinct 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?

For a complex tool with a nested object payload and no output schema, the description adequately covers the return contract (the four statuses plus shaped_action) and the non-execution guarantee. It falls short on the input side, where a 0%-coverage nested schema leaves an agent guessing about workspace_id, approval_id, payload_sha256 and connection_check_id semantics.

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 five parameters, including a deeply nested action object with many metadata fields (verified_owner, approved_list_member, bank_details_changed_recently, matter_owner_id, etc.), and the description explains none of them. The only inputs it touches indirectly are the action being shaped and the returned shaped_action; workspace_id, approval_id, payload_sha256 and connection_check_id are left entirely to the raw schema.

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 — 'Evaluate a proposed action against current workspace rules' — and immediately draws the boundary from execution siblings with 'No external action is executed.' An agent can tell this apart from execute_brokered_action without opening the 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?

Gives concrete downstream guidance: when the result is Adjusted, 'callers send that version, never the original,' which is an actionable rule rather than a vague hint. The 'no external action is executed' clause implies this is the pre-flight check before an execution tool, but it never explicitly names execute_brokered_action as the follow-up alternative, so routing is inferred rather than stated.

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