Skip to main content
Glama
CTMJSON

CTM VoiceAI MCP

by CTMJSON

CTM OAuth Exchange Code

ctm_voiceai_auth_exchange

Exchanges a CTM web authorization code for OAuth tokens and stores them so the assistant can authenticate and access VoiceAI data.

Instructions

Exchanges a web-flow authorization code for CTM OAuth tokens and stores them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe code query parameter CTM redirected back with.
redirect_uriYesMust match the redirect_uri used to authorize.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations cover only openWorldHint, so the description carries most of the burden. It does disclose a genuine side effect beyond the annotations — that tokens are stored — but says nothing about whether existing tokens are overwritten, token lifetime/expiry, failure modes, or required scopes.

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?

A single front-loaded sentence that names the input, the output, and the persistence side effect with zero filler. Nothing could be trimmed without losing information.

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 OAuth exchange with no output schema, the description covers the core action but omits the prerequisite flow (auth_url), what happens on redirect_uri mismatch, and how the newly stored tokens relate to any pre-existing session. Adequate but with real gaps.

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% for both parameters, so the schema already explains 'code' and the redirect_uri matching constraint. The description adds no format, source, or validation detail beyond what the schema provides, making the baseline 3 correct.

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 (exchanges) and concrete resources (web-flow authorization code → CTM OAuth tokens), so the operation is unambiguous. It implicitly separates itself from ctm_voiceai_auth_login and ctm_voiceai_auth_url by naming the web flow, though it never explicitly contrasts with those siblings.

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

Usage Guidelines2/5

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

No when-to-use guidance, prerequisites, or alternatives are given. An agent must infer that this runs only after a browser redirect from ctm_voiceai_auth_url, and nothing explains why one would pick this over ctm_voiceai_auth_login.

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