Skip to main content
Glama

role_sections

Reports whether each role-card section will be injected in the selected mode, helping diagnose why a section did not take effect.

Instructions

报告各小节在当前模式下是否会被注入,用于解释「这段为什么没生效」。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "role_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does convey that this is a non-mutating status report whose results depend on the active mode. It does not say whether a role must be set first, whether the output is per-section booleans or reasons, or how the supplied 'mode' argument relates to the 'current mode' it claims to report on.

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?

A single compact sentence with the core capability front-loaded and the diagnostic rationale appended. Nothing is padded, though the phrase 'current mode' is imprecise given the presence of an explicit mode parameter.

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

Completeness3/5

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

For a two-parameter, read-only diagnostic tool with no output schema and no annotations, the description covers the intent but not the mechanics. An agent still cannot tell what the response looks like or what 'name' filters, which matters because there is no output schema to fall back on.

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?

Schema description coverage is 0%, so the description needed to explain the two parameters and does not. Worse, the description says 'current mode' while the schema exposes an optional 'mode' enum (v1/v2), leaving it unclear whether that argument overrides the current mode; the 'name' parameter is never mentioned at all.

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 pair: reporting whether each section would be injected under the current mode. It also frames the diagnostic intent ('explain why this section didn't take effect'), which separates it from role_get and role_list, though it never names those siblings explicitly.

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

Usage Guidelines3/5

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

The clause about explaining 'why this didn't take effect' implies the diagnostic use case, which is genuine usage context. However, there is no explicit when-to-use/when-not-to-use statement and no pointer to role_context_render as the alternative for actually rendering output.

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