Skip to main content
Glama

AdsAgent — Meta Ads MCP

mmp_get_state

Read-only

Read MMP mapping, cohort, and funnel state

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
  2. Changed2 schema fields 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"
      -      },
      -      "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"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "safe_mode_reduced": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "apps_count",
      +      "available_channel_pids",
      +      "available_events_sample",
      +      "connected",
      +      "providers",
      +      "safe_mode_reduced"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "cohort_configs_by_connection",
      +      "connections",
      +      "metadata_by_connection"
      +    ]
      +  }
      +]
    • addedOutput schema / else / properties
      Added value: +{
      +  "apps_count": {
      +    "type": "integer"
      +  },
      +  "available_channel_pids": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "available_events_sample": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "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"
      +  },
      +  "connected": {
      +    "type": "boolean"
      +  },
      +  "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": {
      +    "anyOf": [
      +      {
      +        "description": "Secondary stored configuration reads were unavailable.",
      +        "type": "boolean"
      +      },
      +      {
      +        "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"
      +  },
      +  "providers": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "safe_mode_reduced": {
      +    "const": true
      +  }
      +}
  3. 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"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  5. 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"
      +    ]
      +  }
      +]
  6. First observed

TDQS

B3.3/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 fully covered. The description adds only that the read spans three state domains (mapping, cohort, funnel), which is modest value beyond the annotation; it says nothing about whether the state is cached, scoped to an account, or how large the payload is.

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 short phrase with no filler, and the resource list is front-loaded. It is perhaps too terse for a multi-domain read, but every word earns its place and nothing is padded.

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?

With an output schema present and full annotations, the description does not need to explain return values or safety. It is still thin on the one thing an agent lacks: how this 'state' relates to the adjacent mmp_insights_* query tools and whether calling it is a prerequisite for them.

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?

The tool takes zero parameters, so there is no parameter semantics to explain; the baseline for a parameterless tool applies. The description does not need to compensate for any schema gaps here.

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 names a specific verb ('Read') and three concrete resources (MMP mapping, cohort, funnel state), which is more than a restatement of the tool name. However, it does not distinguish this 'state read' from the many sibling MMP analytics tools (mmp_insights_query_product_cohort, mmp_insights_get_product_today), so an agent cannot tell from the description alone which MMP entrypoint to pick.

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 versus the mmp_insights_* siblings, and no prerequisites or exclusions are given. The only signal is the word 'state', which forces the agent to infer the distinction between configuration state and insight queries.

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