[deprecated in v3.0.0 — use gateway.aeoess.com REST API] Execute an action through the enforcement context.
AI agents invoke execute_with_context to trigger actions in Agent Passport System — Cryptographic Identity for AI Agents. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | string | Yes | Required scope for this action (must match a delegated scope) |
target | string | Yes | Target of the action (e.g. URL, file path, resource ID) |
action_type | string | Yes | Action type (e.g. 'api:fetch', 'data:write', 'commerce:checkout') |
estimated_spend | number | — | Estimated spend for commerce actions |
Parameters from the server's own tool schema.
The word 'Execute' in both the tool name and description, combined with the phrase 'action through the enforcement context', indicates this tool runs or triggers operations rather than merely reading or writing data. While deprecated, the tool remains capable of executing actions whose consequences are argument-dependent.
From the tool's definition Tool name 'execute_with_context' and description 'Execute an action through the enforcement context' explicitly indicate code/action execution.
Documented attack patterns abuse exactly the kind of access execute_with_context gives an agent:
PolicyLayer is an MCP gateway — it sits between your AI agents and Agent Passport System — Cryptographic Identity for AI Agents, and nothing reaches the server without passing your rules. This is the rule we recommend for execute_with_context:
{
"version": "1",
"default": "deny",
"tools": {
"execute_with_context": {
"limits": [
{
"counter": "execute_with_context_rate",
"window": "minute",
"max": 10,
"scope": "grant"
}
]
}
}
} execute_with_context stays usable, but rate-capped — a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
Free to start. No card required.
All 150 Agent Passport System — Cryptographic Identity for AI Agents tools →
[deprecated in v3.0.0 — use gateway.aeoess.com REST API] Execute an action through the enforcement context. It is categorised as a Execute tool in the Agent Passport System — Cryptographic Identity for AI Agents MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
execute_with_context accepts 4 parameters: scope, target, action_type, estimated_spend. Required: scope, target, action_type. The full parameter table on this page comes from the server's own tool schema.
Register the Agent Passport System — Cryptographic Identity for AI Agents MCP server in PolicyLayer and add a rule for execute_with_context: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Agent Passport System — Cryptographic Identity for AI Agents. Nothing to install.
execute_with_context is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the execute_with_context rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for execute_with_context. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
execute_with_context is provided by the Agent Passport System — Cryptographic Identity for AI Agents MCP server (https://mcp.aeoess.com/sse). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Start from Agent Passport System — Cryptographic Identity for AI Agents, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.
Free to start. No card required.
150 Agent Passport System — Cryptographic Identity for AI Agents tools catalogued and risk-classified — across an index of 43,000+ MCP servers.