get_csrf_token
Retrieve a valid CSRF token from the NapCat server to authenticate API requests and prevent cross-site request forgery.
Instructions
Get CSRF token
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Retrieve a valid CSRF token from the NapCat server to authenticate API requests and prevent cross-site request forgery.
Get CSRF token
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Changes observed during successful MCP inspections.
v0.3.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says 'Get CSRF token,' which implies a safe read but doesn't state whether a session is required, whether the token is generated fresh, or whether there are side effects. For an auth-related tool this is a meaningful gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The text is extremely short and front-loaded, but the single sentence merely restates the tool name and adds no information. It is not verbose, but it is under-specified rather than productively concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no annotations and no output schema, the description is the only signal an agent has, and it doesn't explain the token's role, return format, or relationship to the many auth-related sibling tools. The zero-parameter schema covers input ambiguity, but the missing context prevents a complete mental model.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema declares zero parameters, and with 100% schema description coverage there is nothing for the description to add. The no-parameter baseline of 4 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Get CSRF token' names a specific resource with a clear retrieval verb, so an agent can infer what the tool returns. It doesn't add context to distinguish it from auth-related siblings like get_cookies or get_credentials, but the core purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no guidance on when to call this tool instead of alternatives like get_cookies or get_credentials, and no context about whether it is a prerequisite for other calls. An agent has to infer its purpose entirely from the tool name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.