Skip to main content
Glama

request_action_consent

Request user consent before sensitive or bulk course actions, letting users review proposed changes in Chrome and grant one-time or permanent authorization.

Instructions

【操作資料授權申請(單次/永久許可)】在執行敏感或大量資料填入(如出作業、批改給分、刪除作答、發布公告)前,向擴充套件申請使用者授權。使用者可在 Chrome 許可頁面明確檢視填入內容,並選擇「僅本次允許」或「記住並永久允許」。

Input Schema

NameRequiredDescriptionDefault
actionYes操作代碼(例如 homework:create, homework:grade, bulletin:create 等)
payloadYes預計填入或修改的詳細資料(如成績、評語、標題、截止日等)
courseIdYes目標課程 ID
actionTitleYes操作名稱(如:批改學生作業成績、發布課程公告)
preferredModeNo預期授權模式:單次許可 (one_time) 或 永久許可 (permanent)one_time
actionDescriptionYes詳細操作說明與預計變更範圍

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 usefully discloses the human-in-the-loop flow: the user reviews the exact fill content on the Chrome permission page and picks one-time or permanent. It omits critical behavior for a gating tool — whether the call blocks awaiting the user, what happens on denial or timeout, and whether a denial aborts the subsequent write.

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?

Two sentences, front-loaded with the purpose and followed by the user-facing mechanics. The bracketed header partly restates the title, but the rest is dense and free of filler.

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 6-parameter tool (5 required) with a free-form nested payload object and no output schema, the description explains the trigger and the user-facing choice but says nothing about what the call returns or how a grant is represented to the caller, which matters since 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.

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented, including the preferredMode enum. The description adds only the general notion that the payload is what the user will see; it supplies no extra constraints (e.g., payload size limits, required action code conventions) beyond the schema.

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 — requesting user authorization from the extension before sensitive or bulk data-fill operations — and lists concrete triggering actions (homework creation, grading, answer deletion, bulletin publishing). It is clear what the tool does, though it does not distinguish itself from the close sibling request_ui_consent or explain the relationship to list_granted_consents/revoke_permanent_consent.

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?

Usage context is explicit: call this before executing sensitive or high-volume fill operations, with examples of what counts. However, no exclusion guidance is given — it never says when to prefer request_ui_consent, or whether an existing permanent consent (checkable via list_granted_consents) makes this call unnecessary.

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