Skip to main content
Glama

Preview action

preview_action
Read-only

Preview Action

When to use: 실행 전에 입력을 검증하고 영향(예: 수신자 수)을 미리 볼 때. 아무것도 쓰지 않는다.

Limitations: 입력이 틀리면 422 errors[].loc 에 고칠 위치가 있다. 등급 B 는 confirmation_token(10분)을 준다 — preview 를 사용자에게 보여 주고 확인받은 뒤에만 execute_action 에 넘긴다. 등급 C 는 preview.proposal 을 create_action_proposal 로 보낸다.

Examples:

  • Q: 캠페인 42 확정하면 몇 명이야? params: {'path': {'action_type': 'crm_campaign_confirm'}, 'body': {'input': {'campaign_id': 42}}}

Output shape: single PreviewResponse

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

Input Schema

NameRequiredDescriptionDefault
inputNo
project-idNo
action_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, and the description is consistent ('writes nothing'). Beyond that it discloses error behavior (422 with errors[].loc pinpointing the fix), a time-limited confirmation_token, grade-dependent branching, and the output type (PreviewResponse). This is substantial behavioral context the annotations do not carry.

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?

Well structured with labeled When to use, Limitations, Examples, and Output shape sections, front-loading the key guidance. It is slightly padded by repeating the title 'Preview Action' and by mixing Korean and English prose, but no sentence is wasteful.

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 preview tool with an output schema, the description covers the important gaps: what it does not write, error shape, confirmation-token lifetime, and downstream handoff. The one material omission is any explanation of project-id and how grades are determined, which matters given 0% schema coverage and a nested input object.

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?

Schema description coverage is 0%, so the description must compensate for three parameters. It partially does: the example shows the nested body.input shape (campaign_id) and the action_type string (crm_campaign_confirm). However, project-id is never explained, and the relationship between the grade (B/C) and a parameter or action_type value is left implicit.

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 states a specific verb and resource ('Preview Action') and clarifies the actual function: validate input and preview impact (e.g., recipient count) before execution, writing nothing. The example with crm_campaign_confirm makes the resource concrete. It is distinguished from execute_action and create_action_proposal in the Limitations section, though the notion of 'action_type' grades (B/C) is introduced without definition.

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 when-to-use: validate inputs and preview impact before execution. It also gives the downstream workflow for each grade: grade B yields a confirmation_token (10 min) that must be shown to the user and confirmed before calling execute_action; grade C's preview.proposal goes to create_action_proposal. This routes the agent to the correct siblings with conditions, not just names.

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