Skip to main content
Glama
mcp-web-print-pdf

mcp-web-print-pdf

by weixiaoyi

setThemeColor

Set the client theme color with an rgb value, or reset it to the default by passing reset: true or a null theme color.

Instructions

设置客户端主题色,如 rgb(229,182,80);reset: true(或 theme_color: null)= 恢复默认

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": "setThemeColor"
  }
}

Input Schema

NameRequiredDescriptionDefault
resetNotrue = 恢复默认,等价于 theme_color: null
theme_colorNorgb(...) 颜色;传 null 恢复默认

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses little: nothing about whether the theme applies per-session or persists, whether the change is immediately visible, or what feedback the call returns. The reset-is-reversible hint is the only behavioral detail, and that fact is already stated in the input schema.

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 clause with the purpose front-loaded and the reset mode appended after a semicolon; nothing is wasted. The density is slightly formulaic but entirely earned for a two-parameter tool.

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 simple two-optional-parameter mutation with no output schema, the description covers both operating modes adequately. It stops short of telling the agent what happens on success/failure or whether the setting persists, which matters for a client-state mutation with zero annotation coverage.

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%, so the schema already documents both reset and theme_color including their equivalence. The description adds only the concrete example format "rgb(229,182,80)", which is a marginal gain over the schema's "rgb(...)" placeholder — baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ("设置客户端主题色" / set the client theme color) plus a concrete example value, so the effect is unambiguous. It does not differentiate from the nearest sibling setTitle, but the purpose itself is clear.

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 description makes clear when to set a color and when to restore the default (reset: true or theme_color: null), which is genuine usage guidance. However it frames this only in terms of parameters — there is no statement of when to prefer reset over an explicit color, and no mention of side effects or relationship to other tools.

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