Skip to main content
Glama
IFS Cloud Bridge

IFS Cloud Bridge

by dchemwetich

call_protected_api

Destructive

Executes authenticated HTTP requests to protected IFS Cloud API endpoints, using approved API guides to avoid 404 errors and incorrect data from guessed projection paths or OData filters.

Instructions

Call a protected IFS Cloud API endpoint using an authenticated session. IFS Cloud projection names, endpoint paths, key fields, and OData filter syntax are non-standard and vary per customer configuration. Guessing them will produce 404 errors or silently return wrong data. You MUST call get_api_guide first to get the correct endpoint and query pattern for the workflow - do not skip this step even if you think you know the endpoint. Do NOT call $metadata, probe unknown paths, or construct endpoints from scratch. If get_api_guide returns no matching guide, follow the instruction in its result: look up the screen in the client navigator, show the user the matching projection(s), and ask for confirmation before creating a new skill (always ask which one when there are several). If the response contains error 'authentication_required', immediately call start_oauth - do not relay the error to the user or ask them to authenticate manually. Targets the active IFS environment unless 'environment' is given. If the response contains error 'no_environment_selected', do not guess - show the user the listed environments and ask which one to use, then call use_ifs_environment. Pass an If-Match header for conditional PATCH/DELETE on projections that require optimistic concurrency (check the API guide or a prior GET response's @odata.etag). Pass X-IFS-Content-Disposition to set the filename IFS uses for a file upload/download.

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": {
      "endpoint": "<endpoint>",
      "method": "<method>"
    },
    "name": "call_protected_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (for POST/PUT/PATCH)
methodYesHTTP method (GET, POST, etc.)
headersNoOptional request headers. Only If-Match, If-None-Match (OData optimistic concurrency) and X-IFS-Content-Disposition (IFS's custom header for naming an uploaded/downloaded file) are allowed - any other header is rejected.
endpointYesAPI endpoint to call (relative path)
sessionIdNoSession ID from OAuth authentication (optional - uses saved session if not provided)
environmentNoOptional: name of the IFS environment to target for this one call, overriding the active selection. Omit to use the active environment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag this as destructive, non-read-only, and open-world, and the description adds substantial context beyond that: the authenticated-session requirement, the failure modes of guessing endpoints (404s or silently wrong data), the two named error codes and their handling, and the optimistic-concurrency and content-disposition header semantics for PATCH/DELETE and file transfer. Little about runtime behavior is left undisclosed.

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 critical rule — call get_api_guide first — is front-loaded, and the subsequent error-handling branches are ordered logically. It is dense and somewhat repetitive, since the 'do not guess' warning is restated three ways across two sentences, but nearly every sentence carries workflow-critical information rather than filler.

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 destructive, open-world tool with six parameters, no output schema, and nested header/body objects, the description covers prerequisites, error branches, and header semantics well. It stops short of describing response shape, pagination, or how body contents are validated, which an agent may still need for larger operations.

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 is 100%, so the baseline is 3, but the description adds real meaning: it explains that If-Match should be sourced from the API guide or a prior GET's @odata.etag, and that the environment parameter only overrides the active selection for this single call. Those are operational details the schema does not convey.

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?

The first sentence states a specific verb and resource — calling an authenticated IFS Cloud API endpoint — and the surrounding text makes clear it is the generic execution tool, distinct from the guide-lookup, OAuth, and environment-selection siblings. An agent can tell what this does and what it is not for without opening 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 Guidelines5/5

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

Explicit prerequisites and alternatives are spelled out: call get_api_guide first, do not probe $metadata or construct endpoints, and follow a defined branch when the guide is missing. It also names the exact escalation tools for the authentication_required (start_oauth) and no_environment_selected (use_ifs_environment) cases, which is about as complete as when-to-use guidance gets.

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