Skip to main content
Glama

Give paid content

grant_access
DestructiveIdempotent

Give a person paid content or a download without a purchase (Pro and up). Send productId (an access product: its groups, the paid content pages it unlocks; a download product: its file, in their My purchases) or groups ([groupId…]). A new address becomes a member through the invite flow (mailed a link to choose a password); a removed or pending member is let back in, as is a removed member who bought anyway (their order is kept but grants nothing). The groups are recorded as an owner grant (list_members (area members): why owner) and the person is mailed "You’ve been given access to {site}’s paid content". Taking a member past 20 groups is refused in words.

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": {
      "siteId": "<siteId>",
      "email": "<email>"
    },
    "name": "grant_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesThe person’s email address
groupsNoOr the group ids to give
siteIdYesSite id (from list_sites)
productIdNoAn access or download product (from list_products)

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?

Well beyond the annotations, it discloses side effects an agent could not infer: an invite email is sent to a new address, a notification email is mailed, the grant is recorded as an owner grant visible via list_members, a prior order is retained but grants nothing, and exceeding 20 groups is refused. The only omission is why the tool is flagged destructive and whether it is undoable.

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?

The core action and the required targeting choice are front-loaded, and every clause carries operational information. The density of stacked parentheticals makes it slower to parse than necessary, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, four parameters, and real side effects, the description covers eligibility, targeting, per-state behavior, notification, recording, and a hard limit. An agent has everything needed to call it correctly and predict the outcome.

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 already 100%, so 3 is the floor, and the description earns above it by explaining the consequence of each parameter type: an access product unlocks its groups and content pages, a download product places its file in My purchases, and groups are stored as an owner grant. It adds outcome semantics the schema does not carry.

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 a specific verb+resource+condition: 'Give a person paid content or a download without a purchase (Pro and up)'. That single clause separates it from the sibling revoke_access and from an ordinary purchase flow, and both supported targeting modes (productId or groups) are named immediately.

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?

It states the eligibility condition (Pro and up) and the two mutually exclusive targeting options with their effects, plus what happens per member state (new, pending, removed, removed-but-purchased). It does not explicitly point to revoke_access as the inverse operation, so the when-not is only implied.

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