Skip to main content
Glama

call_api

Invokes any HomeLab frontend API endpoint by method and path, with optional query, JSON body, or form data; use it as a fallback when no typed tool exists.

Instructions

Generischer Aufruf JEDES Frontend-Endpunkts (Fallback für alles).

method: GET/POST/PUT/DELETE/PATCH; path: z. B. '/api/settings'. query/json_body/form: optional. Nutze list_endpoints für die Pfade.

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": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "call_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
formNo
pathYes
queryNo
methodYes
json_bodyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It enumerates the HTTP methods, which signals that mutation and deletion (PUT/DELETE/PATCH) are possible, but says nothing about authentication requirements, side effects, irreversibility of destructive calls, error/status handling, or what the response contains. For a tool that can hit any endpoint with any verb, this is a substantial gap.

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?

Four short lines, front-loaded with the purpose, then method, path, optional bodies, and the pointer to list_endpoints. Nearly every clause earns its place; the only minor redundancy is 'Generischer Aufruf JEDES Frontend-Endpunkts' paired with '(Fallback für alles)', which say much the same thing.

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

Completeness2/5

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

For a five-parameter, unannotated, destructive-capable generic passthrough with no output schema, the definition should explain return shape, error behavior, and safety expectations. It covers the invocation surface but leaves an agent unable to predict what comes back or what a DELETE will actually do.

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 0%, so the description must compensate, and it does partially: it names all five parameters, enumerates allowed method values, and gives a concrete path example ('/api/settings'). However, query, json_body, and form are dismissed with a single 'optional' and no guidance on their structure, mutual exclusivity, or serialization, leaving half the parameters under-specified.

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?

States a specific verb+resource: a generic call to ANY frontend endpoint, explicitly framed as a fallback. This distinguishes it from the named sibling list_endpoints, which is cited as the path-discovery tool. It stops short of a 5 because it does not differentiate itself from the many specific API-management siblings (create_api_key, delete_api_user, etc.) that an agent should prefer over a raw call.

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 clear usage context: this is the fallback when nothing more specific exists, and list_endpoints should be used to obtain valid paths. That is an explicit prerequisite plus an alternative. It lacks an explicit 'do not use when a dedicated tool exists' exclusion, which keeps it below 5.

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

Deploy Server

Other Tools