Skip to main content
Glama
fkom13

MCP SFTP Orchestrator

by fkom13

Supprimer une API du catalogue

api_remove

Remove an API from the catalog using its alias to manage and maintain the API inventory within the MCP SFTP Orchestrator server.

Instructions

Supprime une API du catalogue en utilisant son alias.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasYesAlias de l'API à supprimer.

Implementation Reference

  • server.js:162-179 (registration)
    Registers the 'api_remove' tool, including title, description, input schema requiring 'alias', and a thin handler that delegates to apis.removeApi().
    server.registerTool(
        "api_remove",
        {
            title: "Supprimer une API du catalogue",
            description: "Supprime une API du catalogue en utilisant son alias.",
            inputSchema: z.object({
                alias: z.string().describe("Alias de l'API à supprimer.")
            })
        },
        async (params) => {
            try {
                const result = await apis.removeApi(params.alias);
                return { content: [{ type: "text", text: result.message }] };
            } catch (e) {
                return { content: [{ type: "text", text: `ERREUR: ${e.message}` }], isError: true };
            }
        }
    );
  • Schema definition for the api_remove tool input: requires 'alias' string.
    {
        title: "Supprimer une API du catalogue",
        description: "Supprime une API du catalogue en utilisant son alias.",
        inputSchema: z.object({
            alias: z.string().describe("Alias de l'API à supprimer.")
        })
    },
  • The direct handler function for the api_remove tool: extracts alias, calls apis.removeApi, returns success message or error.
    async (params) => {
        try {
            const result = await apis.removeApi(params.alias);
            return { content: [{ type: "text", text: result.message }] };
        } catch (e) {
            return { content: [{ type: "text", text: `ERREUR: ${e.message}` }], isError: true };
        }
    }
  • apis.js:87-95 (helper)
    Core helper function removeApi: loads config if needed, checks existence, deletes entry from apis object, saves to apis.json file, returns success message.
    async function removeApi(alias) {
        await ensureInitialized();
        if (!apis[alias]) {
            throw new Error(`L'alias d'API '${alias}' est inconnu.`);
        }
        delete apis[alias];
        await saveApis();
        return { success: true, message: `API '${alias}' supprimée avec succès.` };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a deletion operation but doesn't mention whether it's reversible, what permissions are required, what happens to dependent resources, or error conditions. 'Supprime' implies destructive action but lacks crucial safety and operational details.

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 a single, efficient sentence that directly states the tool's function without unnecessary words. It's appropriately sized for a single-parameter tool and front-loads the core purpose.

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 destructive operation with no annotations and no output schema, the description is insufficient. It doesn't explain what 'suppression' entails (permanent/temporary), what confirmation or side effects occur, or what the tool returns. The context demands more disclosure for safe agent use.

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% with the single 'alias' parameter well-documented in the schema. The description adds no additional parameter semantics beyond what's already in the schema, maintaining the baseline score for high schema coverage.

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 action ('Supprime' - delete/remove) and the resource ('une API du catalogue' - an API from the catalog), making the purpose unambiguous. However, it doesn't differentiate from sibling 'server_remove' which removes servers rather than APIs, missing explicit sibling distinction.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives like 'api_check' or 'server_remove'. The description only states what the tool does without context about prerequisites, timing, or exclusions.

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/fkom13/mcp-sftp-orchestrator'

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