Skip to main content
Glama

auth_get_url

Generates an OAuth 2.0 authorization URL with a CSRF state token for the FreshBooks sign-in flow. Use it to connect an account or re-authenticate after a revoked or expired session.

Instructions

Generate an OAuth 2.0 authorization URL and a CSRF state token for the FreshBooks sign-in flow.

WHEN TO USE:

  • auth_status returns { connected: false }

  • User says "connect my FreshBooks account" or "sign in to FreshBooks"

  • Re-authenticating after a revoked or expired session

TAKES NO ARGUMENTS.

RETURNS: { url: "https://auth.freshbooks.com/oauth/authorize?...", state: "" }

WORKFLOW:

  1. Call auth_get_url → share the url with the user

  2. User visits the URL, authorizes, and is redirected — the redirect URL contains code and state query params

  3. User pastes the code and state back → call auth_exchange_code with both values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Since no annotations are provided, the description carries the full burden. It clearly discloses that the tool generates a URL and CSRF token, takes no arguments, and specifies the exact return shape plus the workflow leading to auth_exchange_code. It does not mention the CSRF token expiration or the need to store it, which would be minor additions.

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 efficiently structured with a one-sentence purpose, a WHEN TO USE list, a RETURNS example, and a numbered WORKFLOW. Every section adds distinct, non-redundant guidance and front-loads the core action.

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

Completeness5/5

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

It covers when to call the tool, what it returns, how the user participates, and which tool to call next. Given there are no parameters, no annotations, and no output schema, the description provides a complete operational picture for an agent to select and invoke it correctly.

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?

The input schema is empty and the description explicitly states 'TAKES NO ARGUMENTS.' With zero parameters, per the rubric the baseline is 4; the statement aligns with the schema and no further parameter semantics are needed.

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 opens with a specific verb and resource: 'Generate an OAuth 2.0 authorization URL and a CSRF state token for the FreshBooks sign-in flow.' The WHEN TO USE section also implicitly distinguishes it from sibling tools by describing status checks and later code exchange, making the tool's unique role unmistakable.

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

Usage Guidelines5/5

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

The WHEN TO USE section lists three concrete triggers, including 'auth_status returns { connected: false }', explicit user phrases, and re-authentication after a revoked session. It also routes the caller to auth_exchange_code for the follow-up step, clarifying when this tool is the right choice versus its siblings.

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/Good-Samaritan-Software-LLC/freshbooks-mcp'

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