Skip to main content
Glama
IFS Cloud Bridge

IFS Cloud Bridge

by dchemwetich

export_api_data

Exports large API result sets to CSV in batches when a response is too large, including keyed or singleton endpoints as single rows.

Instructions

Export large API result sets to a CSV file. Fetches data in batches of 100 records using $top/$skip pagination and saves to ~/Downloads/ (or ~/.ifs-mcp/exports/ if that doesn't exist). Use this when call_protected_api returns a 'Response too large' warning. Keyed/singleton endpoints (e.g. CompanySet(Company='10')) are also supported - exported as a single row, without pagination.

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": "export_api_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (for POST/PUT/PATCH)
methodYesHTTP method
headersNoOptional request headers. Only If-Match, If-None-Match, and X-IFS-Content-Disposition are allowed - any other header is rejected.
endpointYesAPI endpoint to call (same as used with call_protected_api)
filenameNoOutput filename without extension (e.g., 'quick-reports'). Defaults to 'export'.
sessionIdNoSession ID (optional - uses saved session if not provided)
environmentNoOptional: name of the IFS environment to export from, overriding the active selection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses batch size (100), pagination strategy ($top/$skip), the exact write location with a fallback path, and the single-row exception for keyed endpoints. It does not say what happens if the target file already exists or what the tool returns, which is the main remaining behavioral gap for a non-read-only, open-world tool.

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?

Front-loaded with the core action, then the trigger condition, then the edge case. Every sentence carries information, though the final sentence is dense enough that splitting the singleton behavior into its own line would aid scanning.

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?

With no output schema, the description does the right work by naming the destination directory and the fallback path, and it explains failure-recovery context via the sibling tool. It stops short of stating the return value (file path or summary), which an agent would benefit from knowing.

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 already 100%, so the schema carries most parameter meaning. The description still adds value by tying 'endpoint' back to the same value used with call_protected_api and by explaining that keyed endpoints bypass pagination, which changes how the endpoint parameter is interpreted.

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?

States a specific verb and resource ('Export ... API result sets to a CSV file') and immediately scopes it to large result sets, distinguishing it from the sibling call_protected_api which it explicitly references. An agent can tell exactly what this tool does 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?

Gives an explicit trigger condition ('Use this when call_protected_api returns a Response too large warning') and names the alternative that handles the normal case. It also covers the edge case of keyed/singleton endpoints, so the agent knows this tool still applies there but behaves differently.

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