Skip to main content
Glama

Finish Crunch login

crunch_complete_auth

Completes Crunch login by exchanging the authorization code for tokens and saving them to the token file; accepts the redirected URL or code with state.

Instructions

Finish a login started with crunch_start_auth by exchanging the authorisation code for tokens, which are saved to the token file. Pass the full URL the browser was redirected to, or just the code together with the state crunch_start_auth returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "redirected_url": "<redirected_url>"
    },
    "name": "crunch_complete_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoThe state crunch_start_auth returned; only needed when redirected_url is just the code
redirected_urlYesThe full URL from the browser's address bar after clicking Allow (it contains code= and state=), or just the code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and idempotentHint=false; the description earns credit by disclosing the actual side effect beyond the annotations: tokens are written to a token file. It does not say where that file lives, what happens on an invalid/expired code, or what the call returns, so it stops short of full disclosure.

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?

Two tight clauses, front-loaded with the verb and the originating tool, with no filler. Slightly dense in the second clause, but every phrase carries instructions the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, fully documented step in an auth handshake with no output schema, the description covers the precondition, the accepted input forms, and the persistence side effect. Only error/expiry handling and return content are unaddressed, which is minor at this complexity.

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 100% and both properties are already well documented, including that state is only needed when redirected_url is just the code. The description restates the same two-form rule almost verbatim rather than adding new meaning, so baseline 3 applies.

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?

States a specific action (exchange the authorisation code for tokens) and explicitly ties it to the sibling that begins the flow, crunch_start_auth, so an agent can place it as the second step of a two-stage login without opening either schema.

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?

Clearly implies this is used only after crunch_start_auth has been run and the browser has been redirected, and names the alternative input forms the agent may pass. It does not state exclusions (e.g. what to do if the code has expired or the flow was never started), which keeps it short of a 5.

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

Deploy Server

Other Tools