Skip to main content
Glama

request

Make authenticated API calls with automatic token management. This tool handles login and token renewal transparently, returning full response data including authentication details.

Instructions

Makes an authenticated API call. Handles login automatically — if the token is expired it re-logins transparently. Returns the full response body plus login_data (which contains IDs like pharmacyId returned from login).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYesHTTP method
endpointYesAPI path, e.g. /Incident/getMyForms/0/10
bodyNoRequest body for POST/PUT/PATCH
headersNoAdditional headers to include
skip_authNoSet true to skip the Authorization header (e.g. for public endpoints)
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: automatic login handling, token expiration management, and the response structure including 'login_data' with IDs like 'pharmacyId'. It covers authentication flow and output format, though it doesn't mention error handling, rate limits, or side effects like data modification for write methods.

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?

The description is highly concise and well-structured in two sentences. The first sentence states the core purpose and key behavior (authenticated API call with auto-login). The second sentence details the return value. Every sentence adds essential information without redundancy, making it efficient and front-loaded.

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

Completeness3/5

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

Given the tool's complexity (handles authentication, multiple HTTP methods, and returns structured data) and lack of annotations and output schema, the description is moderately complete. It covers authentication behavior and response format but omits details on error handling, side effects for write operations, and how it differs from sibling tools. For a general-purpose API tool, more context on safety and usage boundaries would improve completeness.

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 description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds minimal parameter-specific semantics, only implying that 'body' is for POST/PUT/PATCH methods and 'skip_auth' bypasses Authorization headers. This provides some context but doesn't significantly enhance understanding beyond the schema's detailed descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Makes an authenticated API call' with automatic login handling. It specifies the verb ('makes') and resource ('authenticated API call'), distinguishing it from generic HTTP tools by mentioning authentication. However, it doesn't explicitly differentiate from sibling tools like 'fetch_spec' or 'search_endpoints', which might also involve API interactions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for authenticated API calls with automatic token renewal, suggesting it's for endpoints requiring auth. It mentions 'skip_auth' for public endpoints, providing some context. However, it lacks explicit guidance on when to use this tool versus siblings like 'fetch_spec' or 'search_endpoints', and doesn't specify prerequisites or exclusions beyond auth handling.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Muhammed-AbdelGhany/rest_api_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server