Skip to main content
Glama

AdsAgent — Meta Ads MCP

templates_get

Read-only

Read a template by exact name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNo
sectionNo
template_nameNo
connection_contextNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "ad_params": {
      -        "$ref": "#/$defs/s4"
      -      },
      -      "adset_naming": {
      -        "type": "string"
      -      },
      -      "adset_params": {
      -        "$ref": "#/$defs/s4"
      -      },
      -      "applied_at": {
      -        "type": "string"
      -      },
      -      "audit_status": {
      -        "type": "string"
      -      },
      -      "campaign_naming": {
      -        "type": "string"
      -      },
      -      "campaign_params": {
      -        "$ref": "#/$defs/s4"
      -      },
      -      "created_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "creative_distribution": {
      -        "type": "string"
      -      },
      -      "effective_creation_defaults": {
      -        "properties": {
      -          "bid_strategy": {
      -            "type": "string"
      -          },
      -          "budget_amount": {
      -            "type": [
      -              "number",
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "budget_level": {
      -            "type": "string"
      -          },
      -          "budget_type": {
      -            "type": "string"
      -          },
      -          "creative_distribution": {
      -            "type": "string"
      -          },
      -          "preflight_tool": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "interest_pack_name": {
      -        "type": "string"
      -      },
      -      "migration_state": {
      -        "properties": {
      -          "envelope_schema_version": {
      -            "type": "integer"
      -          },
      -          "persisted": {
      -            "type": "boolean"
      -          },
      -          "provenance": {
      -            "type": "string"
      -          },
      -          "rejected_paths": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "rejected_paths_complete": {
      -            "type": "boolean"
      -          },
      -          "storage_schema_version": {
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "mutation_ref": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "outcome": {
      -        "type": "string"
      -      },
      -      "read_back": {
      -        "properties": {
      -          "arguments": {
      -            "properties": {
      -              "product_ref": {
      -                "type": "string"
      -              },
      -              "task_ref": {
      -                "type": "string"
      -              },
      -              "template_name": {
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "rejected_paths": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "rejected_paths_complete": {
      -        "type": "boolean"
      -      },
      -      "segmented_required": {
      -        "type": "boolean"
      -      },
      -      "segments": {
      -        "additionalProperties": {
      -          "properties": {
      -            "encoding": {
      -              "type": "string"
      -            },
      -            "sha256": {
      -              "type": "string"
      -            },
      -            "total_bytes": {
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "encoding",
      -            "total_bytes",
      -            "sha256"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "object"
      -      },
      -      "source": {
      -        "properties": {
      -          "ad_account_id": {
      -            "type": "string"
      -          },
      -          "ad_id": {
      -            "type": "string"
      -          },
      -          "adset_id": {
      -            "type": "string"
      -          },
      -          "adset_name": {
      -            "type": "string"
      -          },
      -          "campaign_name": {
      -            "type": "string"
      -          },
      -          "kind": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "tags": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": [
      -          "array",
      -          "null"
      -        ]
      -      },
      -      "template_kind": {
      -        "type": "string"
      -      },
      -      "template_name": {
      -        "type": "string"
      -      },
      -      "template_snapshot": {
      -        "$ref": "#/$defs/s0"
      -      },
      -      "updated_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "verification_status": {
      -        "type": "string"
      -      },
      -      "warnings": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "template_name",
      -      "name",
      -      "tags",
      -      "template_kind",
      -      "template_snapshot",
      -      "effective_creation_defaults"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "byte_length": {
      -        "type": "integer"
      -      },
      -      "byte_offset": {
      -        "type": "integer"
      -      },
      -      "complete": {
      -        "type": "boolean"
      -      },
      -      "data_base64url": {
      -        "type": "string"
      -      },
      -      "encoding": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "next_cursor": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "section": {
      -        "type": "string"
      -      },
      -      "segment_sha256": {
      -        "type": "string"
      -      },
      -      "segmented_required": {
      -        "type": "boolean"
      -      },
      -      "sha256": {
      -        "type": "string"
      -      },
      -      "template_name": {
      -        "type": "string"
      -      },
      -      "template_snapshot": {
      -        "$ref": "#/$defs/s0"
      -      },
      -      "total_bytes": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "template_name",
      -      "name",
      -      "template_snapshot",
      -      "segmented_required",
      -      "section",
      -      "encoding",
      -      "data_base64url",
      -      "byte_offset",
      -      "byte_length",
      -      "total_bytes",
      -      "sha256",
      -      "segment_sha256",
      -      "next_cursor",
      -      "complete"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "complete": {
      -        "const": true
      -      },
      -      "found": {
      -        "const": false
      -      },
      -      "selector_field": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "not_found"
      -      }
      -    },
      -    "required": [
      -      "complete",
      -      "found",
      -      "selector_field",
      -      "status"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "ad_params": {
      +        "$ref": "#/$defs/s4"
      +      },
      +      "adset_naming": {
      +        "type": "string"
      +      },
      +      "adset_params": {
      +        "$ref": "#/$defs/s4"
      +      },
      +      "applied_at": {
      +        "type": "string"
      +      },
      +      "audit_status": {
      +        "type": "string"
      +      },
      +      "campaign_naming": {
      +        "type": "string"
      +      },
      +      "campaign_params": {
      +        "$ref": "#/$defs/s4"
      +      },
      +      "content_updated_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "created_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "creative_distribution": {
      +        "type": "string"
      +      },
      +      "effective_creation_defaults": {
      +        "properties": {
      +          "bid_strategy": {
      +            "type": "string"
      +          },
      +          "budget_amount": {
      +            "type": [
      +              "number",
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "budget_level": {
      +            "type": "string"
      +          },
      +          "budget_type": {
      +            "type": "string"
      +          },
      +          "creative_distribution": {
      +            "type": "string"
      +          },
      +          "preflight_tool": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "interest_pack_name": {
      +        "type": "string"
      +      },
      +      "migration_state": {
      +        "properties": {
      +          "envelope_schema_version": {
      +            "type": "integer"
      +          },
      +          "persisted": {
      +            "type": "boolean"
      +          },
      +          "provenance": {
      +            "type": "string"
      +          },
      +          "rejected_paths": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "rejected_paths_complete": {
      +            "type": "boolean"
      +          },
      +          "storage_schema_version": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "mutation_ref": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "outcome": {
      +        "type": "string"
      +      },
      +      "read_back": {
      +        "properties": {
      +          "arguments": {
      +            "properties": {
      +              "product_ref": {
      +                "type": "string"
      +              },
      +              "task_ref": {
      +                "type": "string"
      +              },
      +              "template_name": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "tool": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "rejected_paths": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "rejected_paths_complete": {
      +        "type": "boolean"
      +      },
      +      "segmented_required": {
      +        "type": "boolean"
      +      },
      +      "segments": {
      +        "additionalProperties": {
      +          "properties": {
      +            "encoding": {
      +              "type": "string"
      +            },
      +            "sha256": {
      +              "type": "string"
      +            },
      +            "total_bytes": {
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "encoding",
      +            "total_bytes",
      +            "sha256"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "object"
      +      },
      +      "source": {
      +        "properties": {
      +          "ad_account_id": {
      +            "type": "string"
      +          },
      +          "ad_id": {
      +            "type": "string"
      +          },
      +          "adset_id": {
      +            "type": "string"
      +          },
      +          "adset_name": {
      +            "type": "string"
      +          },
      +          "campaign_name": {
      +            "type": "string"
      +          },
      +          "kind": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "tags": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "template_kind": {
      +        "type": "string"
      +      },
      +      "template_name": {
      +        "type": "string"
      +      },
      +      "template_snapshot": {
      +        "$ref": "#/$defs/s0"
      +      },
      +      "updated_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "verification_status": {
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "template_name",
      +      "name",
      +      "tags",
      +      "template_kind",
      +      "template_snapshot",
      +      "effective_creation_defaults"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "byte_length": {
      +        "type": "integer"
      +      },
      +      "byte_offset": {
      +        "type": "integer"
      +      },
      +      "complete": {
      +        "type": "boolean"
      +      },
      +      "data_base64url": {
      +        "type": "string"
      +      },
      +      "encoding": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next_cursor": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "section": {
      +        "type": "string"
      +      },
      +      "segment_sha256": {
      +        "type": "string"
      +      },
      +      "segmented_required": {
      +        "type": "boolean"
      +      },
      +      "sha256": {
      +        "type": "string"
      +      },
      +      "template_name": {
      +        "type": "string"
      +      },
      +      "template_snapshot": {
      +        "$ref": "#/$defs/s0"
      +      },
      +      "total_bytes": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "template_name",
      +      "name",
      +      "template_snapshot",
      +      "segmented_required",
      +      "section",
      +      "encoding",
      +      "data_base64url",
      +      "byte_offset",
      +      "byte_length",
      +      "total_bytes",
      +      "sha256",
      +      "segment_sha256",
      +      "next_cursor",
      +      "complete"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "complete": {
      +        "const": true
      +      },
      +      "found": {
      +        "const": false
      +      },
      +      "selector_field": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "not_found"
      +      }
      +    },
      +    "required": [
      +      "complete",
      +      "found",
      +      "selector_field",
      +      "status"
      +    ]
      +  }
      +]
  2. Changed6 schema fields changed
    • addedOutput schema / then / properties / category
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / expected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / then / properties / failure_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / responsibility_hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / route
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / user_visible
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  4. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds one useful behavioral constraint — the name must match exactly rather than fuzzily — but says nothing about pagination via cursor or what the section scoping does.

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?

One sentence with zero filler and the resource stated up front. It is not padded, though it is thin enough that the brevity reflects omission as much as economy.

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?

An output schema exists, so return values need not be described. However, for a read tool with a cursor parameter and an enum-scoped section parameter at 0% schema coverage, the description omits pagination behavior and section semantics that an agent needs to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 4 parameters, so the description carries the compensation burden. It clarifies template_name as an exact-match key but leaves cursor (pagination), section (an enum with three values), and connection_context entirely unexplained in both schema and prose.

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?

States a specific verb and resource ('Read a template') plus the key selector ('by exact name'), which cleanly separates it from templates_list (enumerate) and templates_update/create/delete (write). It does not name any sibling explicitly, so it lands just short of the top band.

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?

No when-to-use guidance and no alternatives are named, despite five sibling templates_* tools where the choice between get, list, and reverse_engineer is non-obvious. The agent must infer that this is the lookup-by-name path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources