Skip to main content
Glama

execute_api_call

Execute HTTP requests with API keys stored in a secure vault, requiring biometric approval for each call to prevent credential exposure.

Instructions

Make an API call using a credential stored in SynAuth's vault.

This is the core structural enforcement tool: the agent provides the request details, SynAuth requests biometric approval, then executes the call with the stored credential. The agent never sees the raw API key or token.

Flow:

  1. You provide: service name, HTTP method, URL, optional headers and body

  2. SynAuth sends a push notification to the user's iPhone

  3. User approves via Face ID

  4. SynAuth injects the stored credential and makes the HTTP request

  5. Response is returned to you

The URL must match one of the service's allowed hosts (security: prevents credential exfiltration). Each approval is single-use — you cannot re-execute the same approved request.

Example: Call OpenAI API service_name: "openai" method: "POST" url: "https://api.openai.com/v1/chat/completions" headers: {"Content-Type": "application/json"} body: '{"model": "gpt-4", "messages": [{"role": "user", "content": "Hello"}]}'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
service_nameYesName of the vault service (use list_vault_services to see available)
methodYesHTTP method
urlYesFull URL to call (host must be in service's allowed_hosts)
headersNoAdditional headers (auth header is injected automatically)
bodyNoRequest body (typically JSON string for POST/PUT/PATCH)
descriptionNoHuman-readable description shown in the approval prompt
timeout_secondsNoMax seconds to wait for approval (default: 120)
Behavior5/5

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

With no annotations, description fully covers behavior: biometric approval, single-use approvals, credential injection, agent never sees key, URL host restriction, and timeout. Transparent about flow and security.

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?

Well-structured with summary, step-by-step flow, security note, and example. Slightly verbose but every detail contributes; could be more concise without losing clarity.

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?

Covers purpose, flow, and security well, but lacks description of return value structure and error handling (e.g., user denial, invalid URL). Without output schema, additional detail would improve completeness.

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 100% means baseline 3, but description adds value by explaining purpose of each parameter (e.g., headers as additional, body for JSON, timeout for approval wait), providing an example, and clarifying description parameter usage.

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?

Description clearly states the tool makes API calls using stored credentials, with explicit flow and security enforcement. It distinguishes from sibling tools like list_vault_services by explaining it's the core execution tool.

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?

Provides clear usage context: required when making API calls with vault credentials, flows step-by-step, and notes security constraint (URL matching allowed hosts). However, does not explicitly contrast with siblings or state when not to use.

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/dennischoubot-glitch/synauth-mcp'

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