Skip to main content
Glama

Accept a third party's file for a piece

accept_contribution
Idempotent

Accepts a file a third party sent through a guest upload link, so the piece can use it. The first acceptance is the one that counts (repeating it changes nothing: already_accepted) and a file the owner uploaded needs none (not_a_contribution). permission_scope is piece (this piece only, the default) or author (the creator's pieces, only when the link asked for it); a guest who withdrew consent cannot be accepted. Only the piece's owner. Requires write. $0.

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": {
      "project_id": "<project_id>",
      "asset_id": "<asset_id>"
    },
    "name": "accept_contribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYesThe `assetId` of the contributed file.
project_idYes
permission_scopeNoThis piece only (default), or the creator's pieces when the guest consented to that.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations by spelling out the idempotent result code, the two no-op error cases, the consent-withdrawal exclusion, the auth requirement ('Only the piece's owner. Requires `write`'), and the zero cost. Annotations declare idempotent/non-destructive, but the description explains what those mean in practice.

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?

Front-loads purpose, then handles idempotency, exclusions, scope, authorization, and cost in a tight sequence. Dense with parenthetical codes, but every clause carries information an agent would otherwise guess wrong.

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?

Covers failure modes, permissions, scope semantics, and cost for a small mutation tool with no output schema. The remaining gap is project_id's role and any indication of what successful acceptance returns or enables next.

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?

Adds real meaning for permission_scope: `piece` is the default and `author` applies to the creator's pieces only when the link asked for it, which is more than the schema's generic enum text. project_id, however, is undocumented in both the schema and the description, so one parameter is left to inference.

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 verb and resource ('accepts a file a third party sent through a guest upload link') and ties it to the outcome ('so the piece can use it'). Clearly separable from list_contributions or complete_upload, which concern listing and uploading rather than accepting a guest contribution.

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?

Explicitly covers the when-not cases: repeating the acceptance is a no-op (`already_accepted`) and a file the owner uploaded needs none (`not_a_contribution`). It also states the precondition blockers (guest withdrew consent, caller must be the piece owner).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources