Skip to main content
Glama

marketo_get_email_by_id

Retrieve a Marketo email asset by ID to access full metadata including HTML content, subject line, from/reply-to addresses, and module structure.

Instructions

Get a single Marketo email asset by ID. Returns full email metadata including HTML content, subject line, from/reply-to, and module structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesEmail asset ID

Implementation Reference

  • The tool 'marketo_get_email_by_id' is registered using server.tool() with id schema, description, and handler.
    server.tool(
      "marketo_get_email_by_id",
      "Get a single Marketo email asset by ID. Returns full email metadata including HTML content, subject line, from/reply-to, and module structure.",
      {
        id: z.number().describe("Email asset ID"),
      },
      async (args) => {
        try {
          return ok(await makeRequest(`/rest/asset/v1/email/${args.id}.json`));
        } catch (e) { return err(e); }
      }
    );
  • Handler function that makes a GET request to /rest/asset/v1/email/{id}.json and returns the result.
    async (args) => {
      try {
        return ok(await makeRequest(`/rest/asset/v1/email/${args.id}.json`));
      } catch (e) { return err(e); }
    }
  • Input schema defining a required 'id' parameter of type number.
    {
      id: z.number().describe("Email asset ID"),
    },
  • src/index.ts:8-8 (registration)
    Import of registerEmailTools from emails.ts.
    import { registerEmailTools } from "./tools/emails.js";
  • src/index.ts:24-24 (registration)
    Registration call registerEmailTools(server) in the main entry point.
    registerEmailTools(server);
Behavior3/5

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

No annotations provided, so description bears full burden. It states the operation is a read ('Get') and lists returned fields, but lacks disclosures on permissions, rate limits, or error cases. Adequate but not comprehensive.

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, front-loaded with key information. No unnecessary words. Efficient and clear.

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?

For a simple get-by-ID tool with no output schema, the description effectively covers what the tool returns. Could be improved by mentioning error scenarios or required permissions, but acceptable for the complexity.

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 coverage is 100% with one parameter. Description adds 'by ID' which matches schema description. No additional semantic value beyond the schema, so baseline 3 applies.

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?

Description explicitly states action ('Get'), resource ('single Marketo email asset by ID'), and return content ('full email metadata including HTML content, subject line, from/reply-to, and module structure'). Clearly distinguishes from sibling marketo_get_emails which likely returns a list.

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?

Description implies usage when you need a specific email by ID, but no explicit guidance on when not to use it or alternatives. Does not mention sibling tools like marketo_get_emails for listing.

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/ZLeventer/marketo-mcp-server'

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