Skip to main content
Glama

Search templates

lob_templates_search
Read-onlyIdempotent

Find Lob templates by description substring or metadata. Returns slim matches without HTML for quick lookup when you know the template name but not its ID.

Instructions

Find templates by description substring (case-insensitive) and/or by Lob metadata. Pages through /templates server-side and returns slim matches (no HTML — use lob_templates_get(id) for the full body). Useful when you know the template by name but not by tmpl_… id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
description_containsNoSubstring to match against each template's `description` field. Case-insensitive. Filtered client-side after pages are fetched.
metadataNoForwarded to Lob as a `metadata[k]=v` filter. Use this to narrow the page walk on the server side before client-side description matching.
limitNoMaximum matches to return (default 20, max 100).
max_pagesNoMaximum number of Lob list pages to walk before stopping (default 5, page size 100). Caps total templates inspected at max_pages × 100.
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint. Description adds behavioral details on pagination (max_pages, limit), client-side vs server-side filtering, and return content (no HTML), which go beyond annotations.

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?

Two sentences with no wasted words: first sentence states function and behavior, second provides use case and alternative. Front-loaded and efficient.

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

Completeness5/5

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

Despite no output schema, description explains returns (slim matches), pagination behavior, parameter usage, and points to alternative for full body. Complete for a search tool with good annotations.

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?

With 100% schema coverage, baseline is 3. The description adds context beyond schema: description_contains is case-insensitive and client-side filtered, metadata is forwarded as server filter, limit is max matches, max_pages caps inspected templates.

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 it finds templates by description substring and/or Lob metadata, and distinguishes from siblings like lob_templates_list and lob_templates_get by detailing server-side paging and slim matches without HTML.

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

Usage Guidelines4/5

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

The description provides a clear use case ('useful when you know the template by name but not by tmpl_… id') and suggests an alternative (lob_templates_get for full body), though it doesn't explicitly state when not to use.

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/optimize-overseas/lob-mcp'

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