Skip to main content
Glama

canvas-mcp

执行岗位动作

canvas_action

执行一个岗位动作(如 AICare 的 preflight / list_checks / gen_report / run_detection / resolve_user)。参数:slug、action 必填;params 按 list_actions 的 schema 填;session_id 想让结果落在某次会话里就带;hostUserId 宿主用户标识可选。返回 {ok, mode:"sync", data} 直接用;{ok, mode:"job", jobId, pollSec} 用 get_job 轮询。代价:list_actions 标 paid 的会从岗位出资人余额扣 credits(出报告 5 / 跑检测 2),失败不扣;同键(如同对象同一天)重复调用返回缓存结果(cached 标记)不重复扣,用户催第二次可放心重试。典型编排:list_actions → canvas_action(preflight) 拿背景 → canvas_action(gen_report) → get_job → 用自然语言讲给用户。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes
actionYes动作 id,见 list_actions
paramsNo按 list_actions 给的 JSON Schema 填
hostUserIdNo宿主用户标识,可选
session_idNo可选,open_canvas 给的会话 ID,动作记录会挂到该会话

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and delivers: credit cost per action (5 for report, 2 for detection), that failures are not charged, that repeated same-key calls return cached results without double-charging, and the two response modes (sync data vs job jobId/pollSec).

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?

Dense but front-loaded: purpose first, then parameters, then return shape, then cost/retry semantics, then orchestration. Every sentence carries information, though the parameter run-on could be tightened.

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

Completeness5/5

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

For a complex nested-param tool with no output schema, the description fully compensates by explaining the two return-shape modes, how to poll job results, cost implications, and the recommended call sequence.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80% (baseline 3), but the description adds meaning beyond the schema by cross-referencing list_actions' JSON Schema for params and clarifying that session_id attaches the action record to an open_canvas session and hostUserId is the host identifier.

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 (岗位动作) and enumerates concrete actions (preflight / list_checks / gen_report / run_detection / resolve_user), making it clearly distinguishable from siblings like list_actions and get_job which it references by name.

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?

Provides an explicit orchestration flow (list_actions → canvas_action(preflight) → canvas_action(gen_report) → get_job), names the alternative tools for discovery and polling, and even clarifies safe retry conditions, leaving little to inference.

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.