Skip to main content
Glama

reports_view

Retrieve a previously generated report using its processing ID to view analysis results.

Instructions

View a specific report by processing ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
processing_idYesProcessing ID from tools_run

Implementation Reference

  • Static schema definition for the 'reports_view' tool. It requires a 'processing_id' string property. This is registered in the STATIC_TOOLS catalog as a fallback.
    { name: "reports_view", description: "View a specific report by processing ID.", inputSchema: { type: "object", properties: { processing_id: { type: "string", description: "Processing ID from tools_run" } }, required: ["processing_id"] } },
  • src/index.js:117-119 (registration)
    The tool catalog (including reports_view) is exposed via the ListToolsRequestSchema handler, returning either the static or live-fetched catalog.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools: toolCatalog };
    });
  • The execution handler for all tool calls including reports_view. It proxies the request to the remote MCP server (with the given name and arguments), or returns an error if no remote connection.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      if (!remoteClient) {
        return {
          content: [
            {
              type: "text",
              text: "MCP Analytics API key required. Set MCP_ANALYTICS_API_KEY in your environment.\nGet a free key at https://app.mcpanalytics.ai",
            },
          ],
          isError: true,
        };
      }
    
      try {
        const result = await remoteClient.callTool({
          name: request.params.name,
          arguments: request.params.arguments || {},
        });
        return result;
      } catch (err) {
        return {
          content: [{ type: "text", text: `Error: ${err.message}` }],
          isError: true,
        };
      }
    });
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the basic action without revealing details like error behavior, return format, or permissions. The simple verb 'view' implies a read operation, but missing details reduce transparency.

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 description is a single sentence with no wasted words. It is appropriately front-loaded and efficient. However, it could be slightly more informative without becoming verbose.

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?

Given the lack of output schema and annotations, the description should provide more context about what viewing a report entails, such as the structure of the returned data or expected behavior on failure. The current description is too sparse for an agent to fully understand the tool's role.

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?

The input schema has 100% coverage for the single parameter, which includes a description. The tool description adds minimal extra context by repeating 'processing ID', confirming the parameter's role. This meets the baseline for high coverage.

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 the action ('view'), the resource ('report'), and the key identifier ('by processing ID'). This distinguishes it from sibling tools like 'reports_list' and 'reports_search', which serve different purposes.

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?

The description provides no guidance on when to use this tool versus alternatives, nor does it mention any prerequisites or typical use cases. This lack of context forces the agent to infer usage from the name alone.

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/embeddedlayers/mcp-analytics'

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