Skip to main content
Glama
fieldjoshua

Upwork MCP Server

by fieldjoshua

End Contract

upwork_end_contract
Destructive

End an active contract and optionally leave feedback for the client. Specify the reason and rating to close the contract after work is complete or cancelled.

Instructions

End an active contract.

Close a contract and optionally leave feedback for the client.

Args:

  • contract_id (string, required): The contract ID to end

  • reason (string, required): Reason - 'project_completed', 'project_cancelled', 'no_longer_needed', 'other'

  • feedback_rating (number, optional): Rating for client (1-5)

  • feedback_comment (string, optional): Feedback comment

  • would_recommend (boolean, optional): Would you recommend this client?

Returns: Confirmation of contract closure.

Important: This action cannot be undone. Make sure all work is complete and payments are settled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYesReason for ending the contract
contract_idYesThe unique identifier of the contract to end
feedback_ratingNoRating for the client (1-5 stars)
would_recommendNoWhether you would recommend this client to others
feedback_commentNoFeedback comment for the client

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already mark destructiveHint=true, and the description adds valuable context: 'This action cannot be undone' and the requirement to ensure work and payments are settled. This goes beyond the generic annotation and makes the irreversible nature concrete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded, but the entire 'Args' section duplicates the input schema almost verbatim. The Returns and Important lines are useful, yet the redundancy keeps it from being as tight as it could be.

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 destructive 5-parameter tool with no output schema, this description covers required args, the reason enum, return expectation, and irreversibility warning. It could provide a more precise return shape, but the confirmation is sufficient for an agent to invoke it correctly.

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 description coverage is 100%, so the schema already fully documents all parameters. The description repeats the parameter list and reason enum but adds no meaning beyond what the schema provides, such as rating bounds or comment max length already being defined.

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 'End an active contract,' a specific verb and resource, then clarifies 'Close a contract and optionally leave feedback.' This clearly distinguishes it from sibling read/list tools like upwork_get_contract and upwork_list_contracts.

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

Usage Guidelines3/5

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

The description implies when to use it through 'active contract' and the warning 'Make sure all work is complete and payments are settled,' but it never explicitly names alternatives or says when not to use this tool. Guidance is present but left to inference.

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