Skip to main content
Glama

createBenefit

Create a benefit in a location, optionally inside one of its benefit categories. Returns the created benefit. Call getLocations to list locations, or getLocation to fetch one by locationId. Leave out categoryRef for a benefit without a category, or get it from getBenefitCategories with the same locationRef. Leave out media: files cannot be uploaded here, so images are added in the Spacebring admin app. Never invent UUIDs; only use values from prior tool responses.

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": {
      "benefit": "<benefit>"
    },
    "name": "createBenefit"
  }
}

Input Schema

NameRequiredDescriptionDefault
benefitYesBenefit to create.

Output Schema

NameRequiredDescriptionDefault
benefitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the write/closed-world profile is covered structurally. The description adds two genuine behavioral notes beyond that: the tool returns the created benefit, and media cannot be uploaded through this call. It says nothing about permissions/authorization requirements or what happens on duplicate titles.

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-loaded with the action and return value, then sequenced resolution guidance and exclusions. Dense but every sentence carries information; the only cost is that it reads as a run-on block rather than separated purpose/constraints lines.

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?

An output schema exists so return values need not be described, and the nested benefit object is fully documented in the schema. The description covers the nontrivial parts an agent could get wrong (optional category, forbidden media, UUID sourcing) — only authorization and duplicate-handling behavior are left unstated.

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 is 3; the description exceeds it by clarifying two things the schema alone does not settle — that categoryRef may simply be left out for a category-less benefit, and that the media array should be omitted entirely because files cannot be uploaded here. The 'never invent UUIDs' instruction adds a real constraint on how the ref parameters may be populated.

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?

Opens with a specific verb and resource ('Create a benefit in a location') and adds scope detail that separates it from updateBenefit and the category tools — the benefit is created optionally inside a benefit category. An agent knows immediately what this tool produces.

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 concrete routing guidance: call getLocations or getLocation to resolve locationRef, and getBenefitCategories with the same locationRef for categoryRef. It also states an explicit when-not ('files cannot be uploaded here, so images are added in the Spacebring admin app'). It does not explicitly say to use updateBenefit for existing benefits, which is the only missing exclusion.

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