Skip to main content
Glama

get_agent_custom_css

Read-onlyIdempotent

Read the agent's current customCSS field (the per-agent CSS override applied to the chat widget). Returns the raw CSS string (empty string if none set). Use this before editing so you can produce a merged result for update_agent_custom_css.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agentId": "<agentId>"
    },
    "name": "get_agent_custom_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesThe agent ID whose customCSS field you want to read

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive semantics, and the description adds what they cannot: the return is the raw CSS string, and it is an empty string when nothing is set. That empty-string detail is the key behavioral fact for the merge workflow, though nothing is said about size limits or formatting.

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?

Three short sentences in the right order: what it reads, what it returns, and why to call it first. No filler and the read-before-write guidance lands last as the actionable takeaway.

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

Completeness5/5

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

For a one-parameter read tool with a full annotation set and no output schema, the description covers the field identity, the return value including the empty case, and the workflow role. Nothing an agent needs to invoke it correctly is missing.

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?

Single agentId parameter at 100% schema description coverage, so the schema already carries the semantics. The description adds no format, sourcing, or error behavior for an invalid ID beyond the schema's wording.

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?

Specific verb and resource: reads the agent's current customCSS field, with a parenthetical defining that field as the per-agent CSS override on the chat widget. It is unambiguously distinguishable from the write sibling update_agent_custom_css.

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?

Explicitly states the use case ('Use this before editing so you can produce a merged result') and names the sibling it feeds into, update_agent_custom_css. It does not say when not to use it, e.g. that get_agent is the better choice when the CSS is not the focus.

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