Skip to main content
Glama
influxdata

InfluxDB MCP Server

Official
by influxdata

create_resource_token

Generate a resource token for InfluxDB to grant read or write permissions on chosen databases. Set expiration and description for controlled access.

Instructions

Create a new InfluxDB resource token with specific database permissions (Core/Enterprise only). Example: databases=["mydb", "testdb"], actions=["read", "write"]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionsYesArray of permissions for the databases. Example: ["read"] for read-only, ["read", "write"] for full access, or ["write"] for write-only.
databasesYesArray of database names this token can access. Example: ["database1", "database2"]. Use exact database names from your InfluxDB instance.
descriptionYesDescription/name for the resource token (e.g., "My App Token")
expiry_secsNoOptional expiration time in seconds (e.g., 3600 for 1 hour, 86400 for 1 day, 604800 for 1 week). If not specified, token never expires.
Behavior2/5

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

With no annotations, the description carries the full burden, but it does not disclose behavior such as whether the token is shown only once, any authentication requirements, or security implications beyond the simple 'create' action. The Core/Enterprise restriction is mentioned, but other behavioral traits (e.g., irreversible creation, possible need for admin privileges) are absent.

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?

The description is two concise sentences with the main purpose stated first and an example second. It wastes no words and is front-loaded with the key verb and resource.

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?

The tool has four parameters, no output schema, and no annotations, so the description is the only source of non-schema context. It conveys the purpose and gives an example, but it does not describe the return value or success behavior. This is adequate for a simple creation tool but leaves gaps that could mislead an agent about what to expect after the call.

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

Parameters4/5

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

Schema coverage is 100%, so all parameters are already explainable. The description adds a concrete example (databases=["mydb", "testdb"], actions=["read", "write"]) that clarifies the expected array syntax and usage. This adds value beyond the schema, justifying a score above the baseline of 3.

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 states a specific action ('Create'), specific resource ('InfluxDB resource token'), and a clear scope ('with specific database permissions', 'Core/Enterprise only'). This distinguishes it from sibling tools like create_admin_token and cloud_create_database_token, making its purpose unambiguous.

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?

The description explicitly notes 'Core/Enterprise only', which tells the agent not to use it for cloud environments (where cloud_create_database_token would be appropriate). However, it does not explicitly name alternative tools for other token types (e.g., admin tokens), so the guidance is clear but not fully explicit.

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/influxdata/influxdb3_mcp_server'

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