Skip to main content
Glama

Design step context / 取某一步的上下文

design_step_context
Read-only

Design step context / 取某一步的上下文 | USE WHEN: load what the user already answered for a design step (PICO / design type / population) before drafting the next step | ALIASES: 方案设计上下文, 上一步内容, 已经填过的信息, design context, previous step, project context | RETURNS: 该步骤可用的前序上下文(pico / design_type / population / topic)

Input Schema

NameRequiredDescriptionDefault
stepYes要看哪一步的上下文(数据编号 1-11)
project_idYes课题 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare this is read-only, closed-world, and non-destructive, so the safety profile is fully covered elsewhere. The only real addition is the RETURNS line listing pico / design_type / population / topic, which is useful given there is no output schema, but the description says nothing about what happens for an empty or unanswered step, an out-of-range step, or missing project.

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 description is a single pipe-delimited line with the trigger front-loaded in USE WHEN and the payload in RETURNS. The alias list is padding for a human reader, but since it doubles as search surface it earns partial keep; nothing else is wasted.

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 2-parameter read tool with no output schema, the description covers the trigger, the input meaning (via schema), and the shape of the return payload. The remaining gap is the meaning of the 1-11 step enumeration and empty-result behavior, which are minor for this complexity level.

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 coverage is 100%: 'step' is documented as data index 1-11 and 'project_id' as the project id, so the schema already carries the parameter meaning. The description adds only that the returned context fields vary by step, without explaining what each step number corresponds to; baseline 3 applies.

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: it loads what the user already answered for a design step (PICO / design type / population) and returns the prior context. 'Before drafting the next step' implicitly points away from the drafting siblings such as act_design_next_step or act_design_generate, but it never names an alternative explicitly, so the differentiation stays partial.

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?

The 'USE WHEN' clause gives a clear trigger: fetch prior answers for a step before drafting the next one. It supplies no when-not conditions, no prerequisites, and no named alternative tools, so the guidance is solid but does not reach the explicit routing seen at the 5 level.

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