Skip to main content
Glama

build_webex_adaptive_card

Build Webex Adaptive Cards using simple inputs like title, text, facts, and actions, without writing JSON schema. Returns structured card data ready to send.

Instructions

Build an Adaptive Card from high-level inputs without hand-crafting the schema.

Returns card_body and card_actions ready to pass directly to send_webex_adaptive_card. Makes no API calls — pure construction only.

Args: title: Card title displayed as bold text (required) body_text: Optional body paragraph displayed below the title/subtitle subtitle: Optional subtitle displayed below the title in muted text image_url: Optional image URL displayed in the card facts: Optional list of {"title": "...", "value": "..."} key-value pairs displayed as a FactSet table actions: Optional list of action dicts. Each must have "type" ("url" or "submit") and "title". URL actions also need "url"; submit actions accept optional "data". Example: [{"type": "url", "title": "Open", "url": "https://example.com"}] style: Container accent color — "default", "emphasis", "good", "warning", or "attention"

Returns: Dict with "card_body" and "card_actions" keys ready for send_webex_adaptive_card, or a standardized error response dict if validation fails.

Examples: card = build_webex_adaptive_card( title="Deployment Complete", subtitle="Production • v2.3.1", body_text="All health checks passed.", facts=[{"title": "Region", "value": "us-east-1"}, {"title": "Duration", "value": "4m 12s"}], actions=[{"type": "url", "title": "View Dashboard", "url": "https://dash.example.com"}], style="good", ) result = send_webex_adaptive_card(room_id="...", fallback_text="Deployment Complete", **card)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
factsNo
styleNodefault
titleYes
actionsNo
subtitleNo
body_textNo
image_urlNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behavioral traits: no API calls (pure construction), returns dict with card_body and card_actions, or an error response on validation failure. It lacks details on authentication or side effects, but for a construction tool this is sufficient.

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?

The description is well-structured: summary, return info, args list, returns, and example. It is informative without being verbose, though there is slight redundancy in stating the return type twice. Overall efficient and front-loaded.

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?

Despite having no output schema and no enums in schema, the description provides a complete picture: parameter meanings, return format, error handling, and a full example. It even lists allowed values for style, acting as an enum. This is sufficient for an agent to use the tool correctly.

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

Parameters5/5

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

The input schema has 0% description coverage, but the description provides detailed explanations for all parameters, including types, optionality, and examples for complex ones like actions and facts. This fully compensates for the schema's lack of descriptions.

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 states the tool's purpose: 'Build an Adaptive Card from high-level inputs without hand-crafting the schema.' It distinguishes itself from siblings like send_webex_adaptive_card by specifying it returns card_body and card_actions ready to pass to that sending tool, indicating it is a construction-only tool.

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

Usage Guidelines5/5

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

The description explicitly says 'Makes no API calls — pure construction only' and that output is ready for send_webex_adaptive_card, telling agents when to use this (to build a card) and when to use alternatives (sending). It also provides examples showing integration with the sending tool.

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/WebexCommunity/webex-bot-mcp'

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