Skip to main content
Glama

element_call_context_method

Call a context method on a video component in a WeChat mini-program. Pass the element ID and method name to control video playback or retrieve its state.

Instructions

调用 video 组件上下文 Context 方法

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo方法参数
methodYes上下文 Context 方法名,仅设置了 id 的 video 组件可用
element_idYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the action without describing side effects, prerequisites, return values, or any constraints. The description does not go beyond the bare purpose, leaving the agent uninformed about consequences.

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?

The description is a single concise sentence with no filler or redundancy. It is front-loaded and easy to parse, though it sacrifices informative depth for brevity.

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

Completeness2/5

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

The description is minimal for a tool with no annotations, no output schema, and only partial parameter coverage. It lacks information about return values, behavioral outcomes, and prerequisites. While the tool is simple, the description does not provide enough context for an agent to fully anticipate the invocation result or constraints.

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

Parameters2/5

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

The schema covers 67% of parameters with descriptions, but the tool description adds no parameter semantics. It does not explain any parameter or relationship between parameters. Even the element_id parameter, which is required, lacks any description in both the schema and the tool description.

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?

The description clearly identifies the action ('调用' = call) and the resource ('video 组件上下文 Context 方法' = video component context method). This distinguishes it from the sibling element_call_method, which targets general element methods.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention prerequisites, exclusions, or preferred scenarios. The only hint about the requirement of a video component with an id appears in the schema, not in the description.

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/pureia/wechat-devtools-mcp'

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