Skip to main content
Glama

Link project to grant

link_project_to_grant
Idempotent

Link an existing project to a grant, for projects that were created before the grant was recorded. One project per grant.

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": {
      "grant_id": "<grant_id>"
    },
    "name": "link_project_to_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
grant_idYes
project_idNo
mark_grantedNoDefault true: also move the grant to status granted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare idempotent, non-destructive, non-read-only semantics, so the safety bar is partly met. The description adds a genuinely useful cardinality rule ('One project per grant'), but does not mention the status side effect of mark_granted or what happens when a grant already has a project linked — both behaviors an agent would want to know before calling.

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?

Two short sentences with the action and the qualifying condition front-loaded; every clause carries information and there is no padding.

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?

The tool is a simple, well-annotated mutation with no output schema, so the description needn't cover return values. However, with three of four parameters undocumented in the schema, the definition leaves the identifier semantics and the already-linked error case unaddressed.

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 only 25%: mark_granted is documented in the schema, but code, grant_id, and project_id have no descriptions anywhere. The description does not clarify what 'code' means, how it relates to project_id or grant_id, or which identifier is authoritative, so it fails to compensate for the coverage gap.

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

Purpose4/5

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

States a specific verb and resource ('Link an existing project to a grant') and scopes it to projects created before the grant was recorded. The word 'existing' implicitly contrasts with the create_project_from_grant sibling, though no sibling is named outright.

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 triggering condition ('for projects that were created before the grant was recorded'), which tells an agent when this applies rather than creating a project from the grant. It stops short of naming explicit alternatives such as create_project_from_grant or unlink_project_from_grant as the when-not path.

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