Skip to main content
Glama

Edge function logs

functions.logs
Read-onlyIdempotent

Recent log lines of one edge function. Scope: logs:read.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "functions.logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFunction name
limitNoLines to return (default 100)
branchNoBranch (environment) id. Optional: defaults to `production`.
project_idNoProject id. Optional: defaults to the project created or used last in this session, or the only one.
organization_idNoOrganization id. Optional: defaults to the token's organization, or the only one you belong to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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, idempotentHint and destructiveHint=false, so the safety profile is fully covered. The description adds one genuinely useful piece of non-annotation context, the required 'logs:read' scope, but says nothing about how far back 'recent' reaches, ordering, or whether results are truncated at the default limit.

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 short fragments, zero filler, with the resource identified before the permission scope. Nothing in the text is redundant with the title or restates the name verbatim.

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?

All five parameters and their defaults are covered by the schema and the safety profile by annotations, so the definition is callable as written. What is missing is the operational framing an agent needs to pick this over logs.tail or logs.get, and any sense of the time window implied by 'recent'.

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

Parameters3/5

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

Schema description coverage is 100%, with every parameter including the 1-1000 limit bound and the branch/project/organization fallback rules documented inline. The description adds no parameter meaning beyond that, which is the correct baseline when the schema does the work.

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 resource ('log lines of one edge function') and scope ('Recent'), so the agent knows this is a per-function log retrieval rather than an org-wide log query. It does not name or distinguish itself from the near-identical siblings logs.get and logs.tail, which is the only thing keeping this from a 5.

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?

The word 'Recent' hints at a bounded snapshot, but there is no explicit when-to-use guidance, no statement of when to prefer logs.get or logs.tail instead, and no stated prerequisites beyond the permission scope. The agent must infer the choice of sibling from the name alone.

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