Skip to main content
Glama

Get Interceptor Metadata

get_interceptor_metadata

Retrieve metadata for HTTP Toolkit interceptors to identify available targets like Docker containers, Android devices, and JVM processes for traffic inspection.

Instructions

Get detailed metadata for a specific interceptor. Returns available targets like Docker containers, Android devices, JVM processes, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInterceptor ID (e.g. "fresh-chrome", "android-adb", "docker-attach", "android-frida", "ios-frida", "attach-jvm")
subIdNoSub-ID for more specific metadata (e.g. a Frida host ID to get its app targets)

Implementation Reference

  • The implementation of the getInterceptorMetadata method, which makes the HTTP request to fetch metadata.
    async getInterceptorMetadata(
      id: string,
      subId?: string
    ): Promise<{ interceptorMetadata: unknown }> {
      const path = subId
        ? `/interceptors/${encodeURIComponent(id)}/metadata/${encodeURIComponent(subId)}`
        : `/interceptors/${encodeURIComponent(id)}/metadata`;
      return this.request('GET', path);
    }
  • src/index.ts:102-114 (registration)
    The MCP tool registration for 'get_interceptor_metadata'.
    server.registerTool(
      'get_interceptor_metadata',
      {
        title: 'Get Interceptor Metadata',
        description:
          'Get detailed metadata for a specific interceptor. Returns available targets like Docker containers, Android devices, JVM processes, etc.',
        inputSchema: z.object({
          id: z.string().describe('Interceptor ID (e.g. "fresh-chrome", "android-adb", "docker-attach", "android-frida", "ios-frida", "attach-jvm")'),
          subId: z.string().optional().describe('Sub-ID for more specific metadata (e.g. a Frida host ID to get its app targets)'),
        }),
      },
      async ({ id, subId }) => jsonResult(await client.getInterceptorMetadata(id, subId))
    );
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 mentions the return includes 'available targets like Docker containers, Android devices, JVM processes, etc.' which adds some context about output content, but doesn't cover critical aspects like whether this is a read-only operation, error conditions, authentication needs, or rate limits.

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 efficiently structured in two sentences: one stating the core purpose and one describing the return value. There's no wasted text, though it could potentially be more front-loaded with critical usage information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read operation with 2 parameters and no output schema, the description provides basic purpose and return content but lacks important context. Without annotations, it should ideally mention that this is a safe read operation, any authentication requirements, and more specifics about the metadata structure returned.

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%, so the schema already fully documents both parameters. The description doesn't add any parameter-specific information beyond what's in the schema descriptions. The baseline of 3 is appropriate when the schema does all the parameter documentation work.

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 verb ('Get') and resource ('detailed metadata for a specific interceptor'), making the purpose unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'list_interceptors' or 'get_config' beyond mentioning the specific metadata scope.

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. It doesn't mention prerequisites, when not to use it, or how it differs from similar tools like 'list_interceptors' (which likely lists all interceptors rather than getting metadata for a specific one).

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/fdciabdul/httptoolkit-mcp'

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