Skip to main content
Glama

edit_variant

Manually edit specific fields of a question variant, such as stem, answer, or analysis, and mark it as manually edited. Returns the updated item snapshot for verification.

Instructions

手动编辑某道变式(零 LLM,只 patch 传入字段)→ 标手动编辑态。

参数: thread_id;item_id(= seq,字符串); patch: {stem?, answer?, analyze?}(analyze 映射 toolkit 的 solution 字段;None 键不改)。 返回: {ok, item_id, item}(编辑后该题快照)。改后建议重跑 verify_variant。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patchNo
item_idYes
thread_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Without annotations, description carries full burden. It reveals key behaviors: zero LLM involvement, only patches passed fields, marks manual edit state, returns a snapshot. Missing details on overwrite vs merge and permissions, but sufficient for safe invocation in most contexts.

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?

Description is brief with one-line purpose, bulleted parameters, return spec, and follow-up advice. No wasted words, information is front-loaded and scannable.

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?

Given 3 parameters and no output schema provided in input, description covers all necessary aspects: behavior, parameter details, return structure, and post-edit action. Adequate for an agent to use correctly.

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

Parameters5/5

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

Schema coverage is 0%, so description must compensate. It explains thread_id, item_id as string, and patch with fields stem?, answer?, analyze? (mapping analyze to solution field). Clarifies that None keys are unchanged. Adds meaning beyond bare schema.

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?

Description states '手动编辑某道变式(零 LLM,只 patch 传入字段)→ 标手动编辑态。' which clearly identifies the verb (manually edit), resource (variant), and specific scope (no LLM, only patch fields, marks manual state). This distinguishes it from siblings like generate_variants or verify_variant.

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?

Description includes '改后建议重跑 verify_variant' providing a post-edit recommendation. While it doesn't explicitly contrast with alternative tools, the context implies use for manual tweaks after generation. No exclusion criteria, but the guidance is clear enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RuntimeAll/teacher-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server