Skip to main content
Glama

agent

Executes coding tasks by reading files, running commands, and writing code from a prompt, with optional session continuation for multi-step work.

Instructions

Codex ajanı: dosya okur, komut çalıştırır, kod yazar. session ile önceki oturum sürdürülür.

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

Input Schema

NameRequiredDescriptionDefault
cwdNo
modelNo
effortNo
imagesNo
promptYes
sandboxNoread-only
sessionNo
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key behavioral trait that this tool executes commands and writes code — i.e., it can mutate the filesystem. However, it says nothing about the sandbox modes (`read-only` default, `danger-full-access`), timeout behavior, or what happens on failure, which matters greatly for an arbitrary code-execution tool.

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 short, front-loaded sentences with no filler; the core capability comes first and the session-continuation note second. It is efficient, though its brevity is arguably under-specification rather than pure tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, code-executing agent tool with no annotations, no output schema, and 0% schema description coverage, the definition is far too thin — an agent would not know how to set sandbox, timeout, or model safely from the description alone.

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% with 8 parameters, so the description must compensate, but it only explains `session` (resumes a prior session). The meanings of `cwd`, `model`, `effort`, `images`, `sandbox`, and `timeout` are left entirely to the enum values and defaults, which is a large gap for an agent-execution tool.

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 names concrete capabilities with specific verbs (reads files, runs commands, writes code), which goes well beyond the bare name 'agent'. It does not explicitly distinguish itself from siblings such as chat or research, but an agent can still tell what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The only usage cue is that passing `session` continues a previous session; there is no guidance on when to pick this tool over `chat`, `research`, or `voice_delegate`, nor any preconditions such as authentication or approval requirements.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.