Skip to main content
Glama

set_token

Authenticate CTFd API requests with an API token stored in memory only and never logged.

Instructions

Use an API token for authentication (stored in memory only, never logged).

Args: token: CTFd API access token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.2/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, and it does add genuine behavioral context: the token is 'stored in memory only, never logged.' However, it omits whether it overwrites an existing token, whether it is validated against the server, or how it affects the current session.

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?

One front-loaded sentence with the security-relevant behavior stated up front, followed by a minimal Args block. No padding, though the Args section adds little beyond the parameter name.

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?

An output schema exists, so return values need not be explained, and the memory-only disclosure covers the key safety concern. Still missing for a state-mutating auth tool: replacement semantics, validation behavior, and any failure modes.

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 0% and the schema only repeats the property title 'Token'. The description adds a modest gloss ('CTFd API access token'), clarifying the source of the credential, but no format, prefix, or validation expectations for the single required parameter.

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+resource: configure authentication with an API token. It is distinguishable from siblings like login and set_cookie by naming the credential type, though it never explicitly contrasts itself with those alternatives.

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?

The description says to 'Use an API token for authentication' but gives no when-to-use guidance relative to login or set_cookie, nor any prerequisite (e.g., that a token must first be obtained from CTFd). Usage is only implied.

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