Skip to main content
Glama

Real World MCP

Operate a provisioned service browser or Python workspace

runtime_action

Queue one ordered operation in your managed session: navigate/snapshot/click/fill/select/press, Python execution (20 seconds max), artifact list/read, or close. Poll the returned job with runtime_status. Python runs in /workspace inside the session container; save output files in artifacts/ for retrieval. No host shell or files are exposed. Only perform provider transactions/communications authorized by the user. Reuse idempotency_key for a retry of the same command; uncertain actions are never automatically replayed.

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": {
      "session_id": "<session_id>",
      "operation": "<operation>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "runtime_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNonavigate: {url}; snapshot: {}; click: {selector}; fill/select: {selector,value}; press: {key}; python.run: {code,timeout_seconds?}; artifacts.read: {id}; artifacts.list/session.close: {}. Use node selectors returned by the last browser snapshot.
operationYes
session_idYes
idempotency_keyYes

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 only give readOnlyHint=false and openWorldHint=true; the description goes well beyond by disclosing the asynchronous job model (queue then poll), the 20-second Python ceiling, the /workspace sandbox with no host shell or filesystem, the artifacts/ directory for outputs, and idempotency semantics including no automatic replay of uncertain actions. These are exactly the constraints an agent needs before invoking a mutating, open-world tool.

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?

Front-loads what gets queued, then follow-up behavior, then environment constraints, then safety and idempotency rules. Every sentence carries distinct information with no repetition of the title or schema.

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 15-enum, nested-argument, async tool with no output schema, the description covers submission, polling, sandbox limits, artifact retrieval, and retry semantics. The remaining gap is what the returned job actually contains, which is only implied by 'Poll the returned job'.

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?

With only 25% schema coverage, the description does add meaning for idempotency_key (reuse only for retrying the identical command) and for python.run's timeout and output location. However, it defers per-operation argument shapes to the schema's arguments description and says nothing about session_id, so compensation for the coverage gap is partial.

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 opening clause names a specific verb and resource ('Queue one ordered operation in your managed session') and then enumerates the operation families: browser actions, Python execution, artifact list/read, and close. It also names the sibling runtime_status as the polling companion, so an agent can separate submission from observation without inspecting a 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?

It explicitly routes post-call behavior to runtime_status and warns that action must be authorized by the user, which is real when-to-use guidance. It does not state prerequisites such as needing an already-provisioned session (e.g., via provision_runtime) or when to prefer control_service/execute_service over this tool, so the routing is clear but not complete.

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