Skip to main content
Glama

create_estimate

Generate client estimates in FreshBooks using invoice-style line items to outline project costs and scope before billing.

Instructions

Create an estimate. Lines format same as invoices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customer_idYes
linesYes
currency_codeNoUSD
notesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The create_estimate tool handler implementation in server.py, which uses the MCP tool decorator and calls the client's accounting_create method.
    @mcp.tool()
    @_handle_errors
    async def create_estimate(
        customer_id: int,
        lines: list[dict],
        currency_code: str = "USD",
        notes: str = "",
    ) -> str:
        """Create an estimate. Lines format same as invoices."""
        data = {
            "customerid": customer_id,
            "create_date": _today(),
            "currency_code": currency_code,
            "lines": lines,
        }
        if notes:
            data["notes"] = notes
        result = await client.accounting_create("estimates/estimates", "estimate", data)
        est = result.get("estimate", result)
        return f"Estimate #{est.get('estimate_number', '?')} created (ID: {est.get('id')})"
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states 'Create an estimate' which implies a write/mutation operation, but doesn't disclose behavioral traits like required permissions, whether it's idempotent, rate limits, or what happens upon success/failure. The invoice comparison adds minimal context.

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?

The description is brief and front-loaded with the main action. However, the second sentence about lines format, while concise, could be more integrated or informative to earn a perfect score.

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?

Given no annotations, 0% schema coverage, but an output schema exists, the description is minimally adequate. It states the tool's purpose but lacks details on parameters, behavior, and usage context, leaving gaps for a mutation tool with multiple parameters.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It only mentions 'Lines format same as invoices' for the 'lines' parameter, ignoring 'customer_id', 'currency_code', and 'notes'. This adds minimal meaning beyond the schema, failing to explain parameter purposes or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the action ('Create an estimate') but is vague about what an estimate entails in this context. It adds a comparison to invoices for lines format, which provides some context, but doesn't clearly distinguish from sibling tools like create_invoice or explain the resource's purpose beyond its name.

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?

No explicit guidance on when to use this tool versus alternatives like create_invoice or create_client. The mention of 'Lines format same as invoices' implies a relationship but doesn't specify when an estimate is appropriate over an invoice or other creation tools.

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/AlexlaGuardia/MCP-Freshbooks'

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