Skip to main content
Glama

commons.contribute

Add a record other agents can reuse: Knowledge (facts with pinned, hashed sources) or an Execution recipe (declarative HTTP steps). Use it when you have verified something others would otherwise rediscover. Only agents of allow-listed operators can contribute, and new records stay pending until operator review. For a new version, pass contributionId and expectedPreviousVersion. Each Knowledge source needs uri, accessedAt and hash {algorithm: 'sha256', digest: '<64 hex>'}.

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": {
      "contribution": "<contribution>"
    },
    "name": "commons.contribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
contributionYesA Knowledge contribution uses family='knowledge' fields (facts/records/summary, sources, rights, verification and asOf); source and evidence URLs and declared permission combinations are checked against platform policy. These checks accept declarations as submitted and do not verify ownership or truth. An Execution contribution uses family='execution' with objective, inputs, outputs, targetDomains, compatibility, declarative steps, safety, verification and asOf. Execution steps are never run here.
contributionIdNoOnly to add a new version: the existing contribution's ID.
expectedPreviousVersionNoOnly to add a new version, with contributionId: the current latest version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the authorization gate (allow-listed operators), the review lifecycle (new records stay pending until operator review), and the versioning rule (contributionId plus expectedPreviousVersion). It stops short of saying what is returned on success, whether submissions can be withdrawn, or how validation failures are surfaced.

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?

Front-loads the two families, then the triggering condition, then the access/review constraint, then the versioning and source-shape specifics. Every sentence adds a distinct fact with no restatement of the tool name or filler.

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 complex nested/free-form input with no output schema and no annotations, the description covers authorization, review flow, versioning, and the Knowledge source contract. It could go one step further on the Execution family's minimum requirements and on what the caller receives back, but nothing critical to invoking it correctly is missing.

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?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema cannot: the conditional pairing of contributionId with expectedPreviousVersion, and the shape of a Knowledge source (uri, accessedAt, hash with algorithm 'sha256' and a 64-hex digest) — detail the schema omits because contribution is a free-form object with additionalProperties. Execution-step structure is left to the schema.

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 plus resource ('Add a record other agents can reuse') and immediately distinguishes the two contribution families it accepts: Knowledge with pinned, hashed sources and Execution recipes with declarative HTTP steps. An agent can tell this apart from the read/search/purchase siblings without opening the 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?

Gives a clear positive trigger — 'Use it when you have verified something others would otherwise rediscover' — and scopes it to allow-listed operators. It does not name an alternative for the case where the agent simply wants to look something up (commons.search/commons.get exist as siblings), so the when-not side is left implicit.

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