Skip to main content
Glama

Run action

execute_action
DestructiveIdempotent

Execute Action

When to use: 사용자가 확인한 쓰기(등급 A · B)를 실행할 때.

Limitations: Idempotency-Key 헤더(UUID)는 사용자 의도 하나에 하나 — 재시도 때 같은 값을 보내면 첫 결과를 돌려준다(replayed=true), 같은 키에 다른 입력은 422, 첫 요청이 아직 실행 중이면 409(Retry-After). 등급 B 는 preview_action 의 confirmation_token 필수(없음 · 만료 · 입력 다름 → 422). 등급 C 는 409(실행 불가) — create_action_proposal 로 제안한다.

Examples:

  • Q: 그 캠페인 초안 만들어줘 params: {'path': {'action_type': 'crm_campaign_create'}, 'body': {'input': {'name': '10월 재구매 유도', 'segment_id': 12}}}

Output shape: single ExecuteResponse

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_type": "<action_type>",
      "Idempotency-Key": "<Idempotency-Key>"
    },
    "name": "execute_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNo
project-idNo
action_typeYes
Idempotency-KeyYes요청 의도 하나에 하나(UUID 권장). 재시도 때 같은 값을 보내면 첫 응답을 돌려준다(24시간). 같은 키에 다른 본문은 422.
confirmation_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, non-read-only), the description discloses specifics an agent cannot get elsewhere: replay behavior returning the first result with replayed=true, 422 on same-key/different-body, 409 with Retry-After while a prior request is in flight, and 422 on missing/expired/mismatched confirmation tokens. That is exactly the operational detail a destructive, idempotent write needs.

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 When to use / Limitations / Examples / Output shape layout is front-loaded and easy to scan, and every limitation sentence carries real information. Minor waste: the 'Output shape: single ExecuteResponse' line is redundant given an output schema, and the idempotency text duplicates the schema's own Idempotency-Key description.

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 destructive, idempotent, five-parameter mutation tool with nested input, the description covers purpose, prerequisites, error semantics, and a worked example, and return values are covered by the output schema. Remaining gaps are the undefined A/B/C grades, project-id, and the set of valid action_type values.

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 20% schema description coverage, the description partially compensates: it explains confirmation_token's grade-B requirement and failure modes, and the example shows the nested `input` shape and an action_type value. However, project-id is undocumented everywhere, valid action_type values are unknown, and the Idempotency-Key explanation largely repeats what the schema already states.

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 a specific verb and resource ('execute a confirmed write') and distinguishes itself from preview_action and create_action_proposal. The main weakness is that 'action' and the A/B/C grade taxonomy it leans on are never defined, so an agent still has to infer what kinds of operations fall in scope.

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 has an explicit 'when to use' clause (executing a user-confirmed write) and two concrete exclusions: grade C is not executable here and should go through create_action_proposal, and grade B requires a confirmation_token from preview_action. The guidance is strong but presupposes the agent knows its action's grade, which nothing in the definition explains.

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