Skip to main content
Glama

AdsAgent — Meta Ads MCP

mmp_get_state

Read-only

Read MMP mapping, cohort, and funnel state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connection_contextNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "apps_count": {
      -        "type": "integer"
      -      },
      -      "available_channel_pids": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "available_events_sample": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "connected": {
      -        "type": "boolean"
      -      },
      -      "providers": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "safe_mode_reduced": {
      -        "const": true
      -      }
      -    },
      -    "required": [
      -      "connected",
      -      "providers",
      -      "apps_count",
      -      "available_channel_pids",
      -      "available_events_sample",
      -      "safe_mode_reduced"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "cohort_configs_by_connection": {
      -        "additionalProperties": {
      -          "additionalProperties": {
      -            "properties": {
      -              "aggregation_type": {
      -                "type": "string"
      -              },
      -              "cohort_type": {
      -                "type": "string"
      -              },
      -              "groupings": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "kpis": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "last_used_from": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "last_used_to": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "min_cohort_size": {
      -                "type": "integer"
      -              },
      -              "partial_data": {
      -                "type": "boolean"
      -              },
      -              "period_filters": {
      -                "items": {
      -                  "type": "integer"
      -                },
      -                "type": "array"
      -              },
      -              "preferred_currency": {
      -                "type": "boolean"
      -              },
      -              "preferred_timezone": {
      -                "type": "boolean"
      -              },
      -              "provider": {
      -                "type": "string"
      -              },
      -              "provider_app_id": {
      -                "type": "string"
      -              },
      -              "selected_channel_pids": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": "object"
      -        },
      -        "type": "object"
      -      },
      -      "connections": {
      -        "items": {
      -          "properties": {
      -            "created_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "display_name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "last_synced_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "provider": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "degraded": {
      -        "type": "boolean"
      -      },
      -      "degraded_reasons": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "metadata_by_connection": {
      -        "additionalProperties": {
      -          "items": {
      -            "properties": {
      -              "app_name": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "channel_pid": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "event_mappings": {
      -                "items": {
      -                  "properties": {
      -                    "event_name": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "mapped_events": {
      -                "items": {
      -                  "properties": {
      -                    "event_name": {
      -                      "type": "string"
      -                    },
      -                    "send_revenue": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "provider": {
      -                "type": "string"
      -              },
      -              "provider_app_id": {
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "connections",
      -      "metadata_by_connection",
      -      "cohort_configs_by_connection"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "apps_count": {
      +        "type": "integer"
      +      },
      +      "available_channel_pids": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "available_events_sample": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "connected": {
      +        "type": "boolean"
      +      },
      +      "degraded": {
      +        "description": "Secondary stored configuration reads were unavailable.",
      +        "type": "boolean"
      +      },
      +      "degraded_reasons": {
      +        "description": "Allowlisted public missing-data reasons only.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "providers": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "safe_mode_reduced": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "connected",
      +      "providers",
      +      "apps_count",
      +      "available_channel_pids",
      +      "available_events_sample",
      +      "safe_mode_reduced"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "cohort_configs_by_connection": {
      +        "additionalProperties": {
      +          "additionalProperties": {
      +            "properties": {
      +              "aggregation_type": {
      +                "type": "string"
      +              },
      +              "cohort_type": {
      +                "type": "string"
      +              },
      +              "groupings": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "kpis": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "last_used_from": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "last_used_to": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "min_cohort_size": {
      +                "type": "integer"
      +              },
      +              "partial_data": {
      +                "type": "boolean"
      +              },
      +              "period_filters": {
      +                "items": {
      +                  "type": "integer"
      +                },
      +                "type": "array"
      +              },
      +              "preferred_currency": {
      +                "type": "boolean"
      +              },
      +              "preferred_timezone": {
      +                "type": "boolean"
      +              },
      +              "provider": {
      +                "type": "string"
      +              },
      +              "provider_app_id": {
      +                "type": "string"
      +              },
      +              "selected_channel_pids": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "object"
      +        },
      +        "type": "object"
      +      },
      +      "connections": {
      +        "items": {
      +          "properties": {
      +            "created_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "display_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "last_synced_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "provider": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "degraded": {
      +        "type": "boolean"
      +      },
      +      "degraded_reasons": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "metadata_by_connection": {
      +        "additionalProperties": {
      +          "items": {
      +            "properties": {
      +              "app_name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "channel_pid": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "event_mappings": {
      +                "items": {
      +                  "properties": {
      +                    "event_name": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "mapped_events": {
      +                "items": {
      +                  "properties": {
      +                    "event_name": {
      +                      "type": "string"
      +                    },
      +                    "send_revenue": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "provider": {
      +                "type": "string"
      +              },
      +              "provider_app_id": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "connections",
      +      "metadata_by_connection",
      +      "cohort_configs_by_connection"
      +    ]
      +  }
      +]
  4. First observed

TDQS

C2.8/5.0
Behavior2/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 by structured data. The description adds nothing beyond that: no note on whether the connection context auto-resolves, whether the state is cached/refreshed, or what scoping applies. It restates the read rather than enriching it.

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?

A single compact phrase with zero filler and the verb leading. It is efficient, though the terseness borders on under-specification rather than true conciseness.

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?

An output schema exists, so return values need not be explained, and annotations cover safety. What is missing is routing guidance relative to the crowded mmp_insights_*/products_* sibling set and any meaning for the undocumented connection_context parameter.

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?

One optional parameter (connection_context) with a strict regex pattern, and schema description coverage is 0%. The description never mentions it or explains when it must be supplied versus omitted, leaving the agent to infer its purpose entirely from the pattern.

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 ('Read') and names three concrete resource domains (mapping, cohort, funnel state), so an agent knows the kind of data returned. It does not, however, distinguish itself from overlapping siblings like mmp_insights_query_product_cohort or products_get_funnel_values, and 'state' remains slightly abstract.

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?

There is no statement of when to use this tool versus the many mmp_insights_* and products_* siblings that also surface cohort/funnel data. No prerequisites, no exclusions, no alternatives are mentioned.

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