Skip to main content
Glama
pepesto-solutions

Pepesto MCP Server

Official

Pepesto Credits (check balance)

pepesto_credits

Check the remaining API credits on your Pepesto API key to monitor usage and avoid interruptions.

Instructions

Return the remaining API credits on the configured Pepesto API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the pepesto_credits tool logic – makes a POST request to the /credits endpoint via the PepestoClient and wraps the result through the runTool helper.
      async () => runTool(() => client.post("/credits", {})),
    );
  • The input schema for pepesto_credits is an empty object (no parameters required).
    inputSchema: {},
  • Registration function that calls server.registerTool with the name 'pepesto_credits', metadata (title, description, inputSchema), and the handler.
    export function registerCreditsTool(server: McpServer, client: PepestoClient): void {
      server.registerTool(
        "pepesto_credits",
        {
          title: "Pepesto Credits (check balance)",
          description:
            "Return the remaining API credits on the configured Pepesto API key.",
          inputSchema: {},
        },
        async () => runTool(() => client.post("/credits", {})),
      );
    }
  • The runTool helper used by the handler to execute the API call, format success results as JSON text, and wrap errors into a ToolResult with isError flag.
    export async function runTool(fn: () => Promise<unknown>): Promise<ToolResult> {
      try {
        const result = await fn();
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
        };
      } catch (err) {
        const msg =
          err instanceof PepestoApiError
            ? err.message
            : err instanceof Error
            ? `Error: ${err.message}`
            : `Error: ${String(err)}`;
        return {
          content: [{ type: "text", text: msg }],
          isError: true,
        };
      }
    }
Behavior4/5

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

No annotations provided, so the description carries full burden. It clearly states the tool returns credits with no side effects, but lacks detail on error conditions (e.g., missing key). Still sufficient for simple read operation.

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?

Single sentence, no superfluous words. Every word contributes meaning. Perfectly concise.

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?

No output schema, so description should explain return value. It states returns remaining credits, but lacks format (e.g., number, string). Adequate for simple tool but could be more precise.

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?

Input schema has zero parameters, so schema coverage is 100%. Description adds no param info, which is appropriate. Baseline score of 4 applies as per guidelines.

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 description clearly states that the tool returns the remaining API credits, distinguishing it from sibling tools like catalog or oneshot. The verb 'Return' and resource 'remaining API credits' are specific and unambiguous.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives. However, due to its specific function, usage is implied when checking API credits. Missing when-not-to-use or prerequisites.

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/pepesto-solutions/pepesto-mcp'

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