Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Approve or Deny Access Request

handle_access_request

Approve or deny pending secret access requests with a decision comment and optional start or expiration dates, then verify the updated request status.

Instructions

Approve or deny a pending secret access request.

Parameters

request_id: Identifier of the access request to modify. status: Either "Approved" or "Denied". response_comment: Comment explaining the decision. start_date, expiration_date: Optional ISO date strings used when approving the request. If these values are present in the object returned by :func:get_pending_access_requests, include them by default unless overridden.

Returns

dict {"result": ... , "verification": ...} where result contains the API response from the update call and verification contains the request retrieved afterwards.

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": {
      "request_id": "<request_id>",
      "status": "<status>",
      "response_comment": "<response_comment>"
    },
    "name": "handle_access_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYes
request_idYes
start_dateNo
expiration_dateNo
response_commentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive mutation, and the description adds real context beyond that: the return shape (result plus a post-update verification retrieval) and the default propagation of dates from get_pending_access_requests. It omits permission requirements and the effect of calling it twice, which keeps it short of a 5.

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 purpose sentence is front-loaded, then parameters and returns follow in a predictable docstring layout. The prose is slightly padded ('If these values are present in the object returned by...'), but every section supplies information an agent needs.

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 five-parameter mutation tool with no output schema, the description covers all inputs plus the return dict shape and the cross-tool date defaulting, which is enough to call it correctly. It lacks failure-mode and permission context, leaving a small residual gap.

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?

With 0% schema description coverage the description carries the full burden and does document all five parameters, including the 'Approved'/'Denied' value set for status (no enum exists in the schema) and ISO format for both dates. request_id's entry is thin ('Identifier of the access request to modify') but adequate.

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?

Names a specific verb pair ('approve or deny') and resource ('pending secret access request'), which cleanly separates it from the sibling get_pending_access_requests that only reads requests. An agent can tell what the tool does without inspecting the schema.

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?

The word 'pending' scopes usage and the start_date/expiration_date guidance explicitly ties this tool to get_pending_access_requests output ('include them by default unless overridden'). It does not address the bulk_user_response sibling or state what happens if the request was already handled.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.