Skip to main content
Glama

Grant profile access to an invitee

grant_profile_access_to_invitation
Idempotent

Prepare a profile for someone invited as a MANAGER, SALES or INTERVIEWER who has not joined yet; they get access on accepting. Admin only. Repeating it is harmless. Refused if the invitation is not pending in this organization, or is for an ADMIN, who sees every profile anyway. For someone who has already joined use grant_profile_access. Returns the grant record.

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": {
      "id": "<id>",
      "invitationId": "<invitationId>"
    },
    "name": "grant_profile_access_to_invitation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProfile id, from list_profiles.
invitationIdYesThe pending invitation id, from list_invitations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare idempotentHint=true and destructiveHint=false, and the description reinforces this in plain language ('Repeating it is harmless') while adding genuinely new behavior: an admin-only auth requirement, two distinct refusal conditions (invitation not pending in this organization, or invitee is an ADMIN), and the return value. That is substantive context beyond the structured hints.

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 purpose, then prerequisites, then failure modes, then the alternative tool, then the return value. Every clause carries a distinct constraint; nothing is filler despite the density.

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 two-parameter mutation with no output schema, the description covers prerequisites, role restrictions, failure conditions, idempotency, the deferred grant semantics, and what is returned. An agent has everything needed to decide and call correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters already carry descriptions naming their source endpoints (list_profiles, list_invitations). The description adds no additional semantics about the id/invitationId pairing or format, so it sits at the baseline for a fully documented 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 ('Prepare a profile') plus the exact target population (invitees with MANAGER, SALES or INTERVIEWER roles who have not joined) and the deferred effect ('they get access on accepting'). It also explicitly contrasts with the sibling grant_profile_access for users who have already joined, so the two are distinguishable without opening either schema.

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?

Gives explicit when-to-use (pending invitee), explicit when-not (already joined, ADMIN invitee), and names the correct alternative tool (grant_profile_access) for the joined case. The 'Admin only' prerequisite is stated up front.

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