Skip to main content
Glama

4chems Platform — IUCLID, CHESAR & QSAR Toolbox hosting

Approve Access Request Endpoint

approve_access_request

Approve a pending access request: issue a member invitation to the requester and resolve the request (level admin or owner of the request's tenant). The response carries the single-use invitation token to hand to the requester, who accepts via accept_invitation. 409 access_request.not_pending unless the request is pending.

Input Schema

NameRequiredDescriptionDefault
authorizationYes
access_request_idYes

Output Schema

NameRequiredDescriptionDefault
idYes
tokenYes
statusYes
tenant_idYes
created_atYes
updated_atYes
invitation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-idempotent mutation; the description goes well beyond that by disclosing the two side effects (invitation issued, request resolved), the required caller privilege level, the fact that the returned token is single-use and must be handed to the requester, and the exact 409 access_request.not_pending failure mode.

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?

Three tightly packed sentences, front-loaded with the action and its effects, then the response contract, then the error condition. No filler or repetition of the title.

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 mutation with named side effects, a privilege requirement, and a single-use token return, the description covers what an agent needs to call it correctly and what to do with the result; the output schema can carry the payload shape. The one real hole is the undocumented authorization parameter.

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?

Both required parameters (authorization, access_request_id) have 0% schema description coverage, so the description must carry them — and it explains neither. The phrase 'the request's tenant' loosely implies what access_request_id refers to, but authorization's format and expected value are entirely undocumented.

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 ('Approve') and resource ('a pending access request'), then spells out the two concrete effects: issuing a member invitation and resolving the request. This distinguishes it cleanly from siblings like dismiss_access_request, withdraw_access_request, and create_invitation.

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 the precondition that the caller must be admin or owner of the request's tenant, and the pending-state requirement implied by the 409 error. It also routes the requester side to accept_invitation. It stops short of explicitly contrasting with reject/dismiss siblings, but the when-to-use context is clear.

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.